- Queries
- All Atoms
- Search
- Advanced Search
Diviner All Atoms
All Atoms
All Atoms
- Set the value of a specific environmental variable for this command.
- Method
- Set environmental variables for the command.
- Method
- Method
- Method
- Method
- Method
- Method
- Exception thrown when a system command fails.
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Class
- Method
- Method
- Signal handler for SIGHUP which prints the current backtrace out to a file. This is particularly helpful in debugging hung/spinning processes.
- Class
- Method
- Method
- Execute system commands in parallel using futures.
- Class
- Method
- Method
- Method
- Method
- Try to close stdin, if we're done using it. This keeps us from hanging if the process on the other end of the pipe is waiting for EOF.
- Method
- Execute `proc_get_status()`, but avoid pitfalls.
- Method
- Close and free resources if necessary.
- Method
- Method
- Begin or continue command execution.
- Method
- Reads some bytes from a stream, discarding output once a certain amount has been accumulated.
- Method
- Determine the number of bytes in the write buffer.
- Method
- Determine if the write buffer is empty.
- Method
- Determine if the read buffer is empty.
- Method
- Provides write sockets to the future core.
- Method
- Provides read sockets to the future core.
- Method
- Method
- Method
- Resolve the process by abruptly terminating it.
- Method
- Resolve a command you expect to return valid JSON. Works like @{method:resolvex}, but also throws if stderr is nonempty, or stdout is not valid JSON. Returns a PHP array, decoded from the JSON command output.
- Method
- Resolve a command you expect to exit with return code 0. Works like @{method:resolve}, but throws if $err is nonempty. Returns only $stdout and $stderr. See also @{function:execx}.
- Method
- Set a hard limit on execution time. If the command runs longer, it will be terminated and the future will resolve with an error code. You can test if a future was killed by a timeout with @{method:getWasKilledByTimeout}.
- Method
- Returns true if this future was killed by a timeout configured with @{method:setTimeout}.
- Method
- Method
- Permanently discard the stdout and stderr buffers and reset the read cursors. This is basically useful only if you are streaming a large amount of data from some process.
- Method
- Write data to stdin of the command.
- Method
- Method
- Read and return output from stdout and stderr, if any is available. This method keeps a read cursor on each stream, but the entire streams are still returned when the future resolves. You can call read() again after resolving the future to retrieve only the parts of the streams you did not previously read:
- Method
- Set the maximum internal read buffer size this future. The future will block reads once the internal stdout or stderr buffer exceeds this size.
- Method
- Set a maximum size for the stderr read buffer. See @{method:setStdoutSizeLimit} for discussion.
- Method
- Set a maximum size for the stdout read buffer. To limit stderr, see @{method:setStderrSizeLimit}. The major use of these methods is to use less memory if you are running a command which sometimes produces huge volumes of output that you don't really care about.
- Method
- Method
- Get the process's pid. This only works after execution is initiated, e.g. by a call to start().
- Method
- Retrieve the byte limit for the stdout buffer.
- Method
- Retrieve the byte limit for the stderr buffer.
- Method
- Method
- Execute a command which takes over stdin, stdout and stderr, similar to `passthru()`, but which preserves TTY semantics, escapes arguments, and is traceable.
- Class
- Method
- Execute this command.
- Method
- Method
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Return a human-readable signal name (like "SIGINT" or "SIGKILL") for a given signal number.
- Function
- Wrapper for @{class:PhutilExecPassthru}.
- Function
- Execute a command and capture stdout, stderr, and the return value.
- Function
- Execute a command and capture stdout and stderr. If the command exits with a nonzero error code, a @{class:CommandException} will be thrown. If you need to manually handle error conditions, use @{function:exec_manual}.
- Function
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method