Метод |
Описание |
|
close ( $res = null ) |
This function will finish reading from in/err streams
and will close all streams. If you are doing your
own reading line-by-line or you want to terminate
application without reading all of it's output -
use terminate() instead;. |
|
debugStatus ( ) |
|
|
exec ( string $cmd, array | string $args = [] ) : self |
Execute the process and associate with this object. |
|
init ( ) |
Initialization of the object. |
|
nice ( integer $nice ) |
Set "nice" value for the process. |
|
readAll ( string $res = 'out' ) : self |
Reads all output and returns. Closes stdout when EOF reached. |
|
readLine ( string $res = 'out' ) : self |
Reads one line of output. Careful - if no output is provided it
this function will be waiting. |
|
readStdErr ( ) |
|
|
read_all ( $res = 'out' ) |
|
|
read_line ( $res = 'out' ) |
|
|
read_stderr ( ) |
|
|
terminate ( integer $sig = null ) |
Closing IO and terminating. |
|
write ( string $str ) : self |
Sends string to process, but process will wait for more input. Always
adds newline at the end. |
|
writeAll ( string $str ) : self |
Similar to write but will send EOF after sending text. |
|
write_all ( $str ) |
|
|