#include "blocxx/BLOCXX_config.h"#include "blocxx/Types.hpp"#include "blocxx/IntrusiveReference.hpp"#include "blocxx/String.hpp"#include "blocxx/ArrayFwd.hpp"#include "blocxx/CommonFwd.hpp"#include "blocxx/EnvVars.hpp"Go to the source code of this file.
Namespaces | |
| namespace | BLOCXX_NAMESPACE |
| namespace | BLOCXX_NAMESPACE::Exec |
Classes | |
| class | BLOCXX_NAMESPACE::ExecTimeoutException |
| class | BLOCXX_NAMESPACE::ExecBufferFullException |
| class | BLOCXX_NAMESPACE::ExecErrorException |
| class | BLOCXX_NAMESPACE::PopenStreams |
| This class represents a connection to a process. More... | |
| class | BLOCXX_NAMESPACE::Exec::OutputCallback |
| class | BLOCXX_NAMESPACE::Exec::InputCallback |
| class | BLOCXX_NAMESPACE::Exec::ProcessStatus |
Enumerations | |
| enum | BLOCXX_NAMESPACE::Exec::EOutputSource { BLOCXX_NAMESPACE::Exec::E_STDOUT, BLOCXX_NAMESPACE::Exec::E_STDERR } |
| enum | BLOCXX_NAMESPACE::Exec::EProcessRunning { BLOCXX_NAMESPACE::Exec::E_PROCESS_RUNNING, BLOCXX_NAMESPACE::Exec::E_PROCESS_EXITED } |
Functions | |
| int | BLOCXX_NAMESPACE::Exec::safeSystem (const Array< String > &command, const char *const envp[]=0) |
| Execute a command. | |
| int | BLOCXX_NAMESPACE::Exec::safeSystem (const Array< String > &command, const EnvVars &envVars) |
| Execute a command. | |
| PopenStreams | BLOCXX_NAMESPACE::Exec::safePopen (const Array< String > &command, const char *const envp[]=0) |
| Execute a command. | |
| PopenStreams | BLOCXX_NAMESPACE::Exec::safePopen (const Array< String > &command, const EnvVars &envVars) |
| Execute a command. | |
| PopenStreams | BLOCXX_NAMESPACE::Exec::safePopen (const Array< String > &command, const String &initialInput) |
| The use of initialInput is deprecated, because it's not safe to use it in a portable manner. | |
| void | BLOCXX_NAMESPACE::Exec::gatherOutput (String &output, PopenStreams &streams, int &processstatus, int timeoutsecs=INFINITE_TIMEOUT, int outputlimit=-1) |
| Wait for output from a child process. | |
| void | BLOCXX_NAMESPACE::Exec::processInputOutput (OutputCallback &output, Array< PopenStreams > &streams, Array< ProcessStatus > &processStatuses, InputCallback &input, int timeoutSecs=INFINITE_TIMEOUT) |
| Send input and wait for output from child processes. | |
| void | BLOCXX_NAMESPACE::Exec::executeProcessAndGatherOutput (const Array< String > &command, String &output, int &processstatus, int timeoutsecs=INFINITE_TIMEOUT, int outputlimit=-1, const String &input=String()) |
| Run a process using current process's environment, collect the output, and wait for it to exit. | |
| void | BLOCXX_NAMESPACE::Exec::executeProcessAndGatherOutput (const Array< String > &command, String &output, int &processstatus, const EnvVars &envVars, int timeoutsecs=INFINITE_TIMEOUT, int outputlimit=-1, const String &input=String()) |
| Run a process, collect the output, and wait for it to exit. | |
| void | BLOCXX_NAMESPACE::Exec::executeProcessAndGatherOutput (const Array< String > &command, String &stdOutput, String &errOutput, int &processstatus, const EnvVars &envVars, int timeoutsecs=INFINITE_TIMEOUT, int outputlimit=-1, const String &input=String()) |
| Run a process, collect the standard output and standard error outputs separately, and wait for it to exit. | |
Variables | |
| const int | BLOCXX_NAMESPACE::Exec::INFINITE_TIMEOUT = -1 |
1.4.6