#include "OW_config.h"
#include "OW_Types.hpp"
#include "OW_IntrusiveReference.hpp"
#include "OW_String.hpp"
#include "OW_ArrayFwd.hpp"
#include "OW_CommonFwd.hpp"
#include "OW_EnvVars.hpp"
Include dependency graph for OW_Exec.hpp:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | OW_NAMESPACE |
namespace | OW_NAMESPACE::Exec |
Classes | |
class | OW_NAMESPACE::ExecTimeoutException |
class | OW_NAMESPACE::ExecBufferFullException |
class | OW_NAMESPACE::ExecErrorException |
class | OW_NAMESPACE::PopenStreams |
This class represents a connection to a process. More... | |
class | OW_NAMESPACE::Exec::OutputCallback |
class | OW_NAMESPACE::Exec::InputCallback |
class | OW_NAMESPACE::Exec::ProcessStatus |
Enumerations | |
enum | OW_NAMESPACE::Exec::EOutputSource { OW_NAMESPACE::Exec::E_STDOUT, OW_NAMESPACE::Exec::E_STDERR } |
enum | OW_NAMESPACE::Exec::EProcessRunning { OW_NAMESPACE::Exec::E_PROCESS_RUNNING, OW_NAMESPACE::Exec::E_PROCESS_EXITED } |
Functions | |
int | OW_NAMESPACE::Exec::safeSystem (const Array< String > &command, const char *const envp[]=0) |
Execute a command. | |
int | OW_NAMESPACE::Exec::safeSystem (const Array< String > &command, const EnvVars &envVars) |
Execute a command. | |
PopenStreams | OW_NAMESPACE::Exec::safePopen (const Array< String > &command, const char *const envp[]=0) |
Execute a command. | |
PopenStreams | OW_NAMESPACE::Exec::safePopen (const Array< String > &command, const EnvVars &envVars) |
Execute a command. | |
PopenStreams | OW_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 | OW_NAMESPACE::Exec::gatherOutput (String &output, PopenStreams &streams, int &processstatus, int timeoutsecs=INFINITE_TIMEOUT, int outputlimit=-1) |
Wait for output from a child process. | |
void | OW_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 | OW_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, collect the output, and wait for it to exit. | |
void | OW_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. | |
Variables | |
const int | OW_NAMESPACE::Exec::INFINITE_TIMEOUT = -1 |