On this page
InvokedProcess
class InvokedProcess implements InvokedProcess (View source)
Properties
protected Process | $process | The underlying process instance. |
Methods
void | __construct(Process $process) Create a new invoked process instance. |
|
int|null | id() Get the process ID if the process is still running. |
|
$this | signal(int $signal) Send a signal to the process. |
|
bool | running() Determine if the process is still running. |
|
string | output() Get the standard output for the process. |
|
string | errorOutput() Get the error output for the process. |
|
string | latestOutput() Get the latest standard output for the process. |
|
string | latestErrorOutput() Get the latest error output for the process. |
|
ProcessResult | wait(callable $output = null) Wait for the process to finish. |
Details
void __construct(Process $process)
Create a new invoked process instance.
int|null id()
Get the process ID if the process is still running.
$this signal(int $signal)
Send a signal to the process.
bool running()
Determine if the process is still running.
string output()
Get the standard output for the process.
string errorOutput()
Get the error output for the process.
string latestOutput()
Get the latest standard output for the process.
string latestErrorOutput()
Get the latest error output for the process.
ProcessResult wait(callable $output = null)
Wait for the process to finish.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Process/InvokedProcess.html