Class Execute
Execute class
Provides function to execute commands
Methods summary
public static
|
#
async( string $executable, array $arguments = [], string $output_stream = '/dev/null' )
Execute asynchronously using exec
Execute asynchronously using exec
Parameters
- $executable
- Path to executable file
- $arguments
- $arguments Executable arguments
- $output_stream
- $output_stream
Uses
exec
Todo
use sprintf, make it more readable
|
public static
intigerthen
|
#
file( string $executable, array $arguments = [], array & $output = false )
Execute using exec
Parameters
- $executable
- Path to executable file
- $arguments
- [optional] Executable arguments
- $output
[optional] This array will be filled with every
line of output from the command. Trailing whitespace, such as \n, is not
Returns
intigerthen the return status of the executed command
Uses
exec
Todo
use sprintf, make it more readable
|