Subprocess
class Subprocess (View source)
Subprocess class.
Constants
STREAM_FILE |
Stream STDOUT and/or STDERR to file. |
STREAM_STDOUT |
Stream STDOUT and/or STDERR to STDOUT. |
STREAM_BOTH |
Stream STDOUT and/or STDERR to file and STDOUT. |
STREAM_STDOUT_WAIT |
Stream STDOUT and/or STDERR to STDOUT (wait for process to finish). |
STREAM_STDOUT_TTY |
Stream STDOUT and/or STDERR to STDOUT (interactive mode). |
Methods
Initiate subprocess.
Stream STDOUT and/or STDERR to console.
Stream STDOUT and STDERR to console.
Stream STDOUT and STDERR to console.
Wait for process to finish and return.
Stream STDOUT and STDERR to console (interactive mode).
Returns process information.
Details
at line 59
final array
run(mixed $cmd, boolean $stream = self::STREAM_STDOUT_WAIT, boolean $fail_on_error = false, mixed $stdoutfile = null, mixed $stderrfile = null)
Initiate subprocess.
at line 92
final protected array
stream_to_file(Process $process, string $stdoutfile, string $stderrfile)
Stream STDOUT and/or STDERR to console.
at line 127
final protected array
stream_to_stdout(Process $process)
Stream STDOUT and STDERR to console.
at line 152
final protected array
stream_to_both(Process $process, string $stdoutfile, string $stderrfile)
Stream STDOUT and STDERR to console.
at line 194
final protected array
stream_stdout_wait(Process $process, boolean $fail_on_error)
Wait for process to finish and return.
at line 210
final protected array
stream_stdout_tty(Process $process)
Stream STDOUT and STDERR to console (interactive mode).
at line 224
final protected array
get_process_info(Process $process)
Returns process information.