PHP Interface Kraken\Util\System\SystemInterface

Show file Open project: kraken-php/framework Interface Usage Examples

Public Methods

Method Description
existsPid ( string $pid ) : boolean Checks if process with given pid exists, returns whether operation was successful.
kill ( string $pid ) : boolean Kill process with given pid, returns whether operation was successful.
run ( string $command ) : string Run command asynchronously, and get pid of its process.

Method Details

existsPid() public method

Checks if process with given pid exists, returns whether operation was successful.
public existsPid ( string $pid ) : boolean
$pid string
return boolean

kill() public method

Kill process with given pid, returns whether operation was successful.
public kill ( string $pid ) : boolean
$pid string
return boolean

run() public method

Run command asynchronously, and get pid of its process.
public run ( string $command ) : string
$command string
return string