#include "OW_config.h"
#include "OW_Exec.hpp"
#include "OW_Format.hpp"
#include "OW_Assertion.hpp"
#include "OW_PosixUnnamedPipe.hpp"
#include "OW_Array.hpp"
#include "OW_IOException.hpp"
#include "OW_Thread.hpp"
#include "OW_Select.hpp"
#include "OW_ExceptionIds.hpp"
#include "OW_IntrusiveCountableBase.hpp"
#include "OW_DateTime.hpp"
#include "OW_AutoPtr.hpp"
#include <map>
#include <sys/resource.h>
#include <unistd.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <signal.h>
#include <cerrno>
#include <iostream>
Include dependency graph for OW_Exec.cpp:
Go to the source code of this file.
Namespaces | |
namespace | OW_NAMESPACE |
namespace | OW_NAMESPACE::Exec |
Classes | |
class | OW_NAMESPACE::PopenStreamsImpl |
Defines | |
#define | NSIG 64 |
#define | OW_MIN(x, y) (x) < (y) ? (x) : (y) |
Functions | |
static ProcId | OW_NAMESPACE::safeWaitPid (ProcId pid, int *status, int options) |
static ProcId | OW_NAMESPACE::noIntrWaitPid (ProcId pid, int *status, int options) |
static void | OW_NAMESPACE::milliSleep (UInt32 milliSeconds) |
static void | OW_NAMESPACE::secSleep (UInt32 seconds) |
static bool | OW_NAMESPACE::timedWaitPid (ProcId pid, int *pstatus, UInt32 wait_time) |
static bool | OW_NAMESPACE::killWait (ProcId pid, int *pstatus, UInt32 wait_time, int sig, char const *signame) |
bool | OW_NAMESPACE::operator== (const PopenStreams &x, const PopenStreams &y) |
int | OW_NAMESPACE::Exec::safeSystem (const Array< String > &command, const EnvVars &envVars) |
Execute a command. | |
int | OW_NAMESPACE::Exec::safeSystem (const Array< String > &command, const char *const envp[]=0) |
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. | |
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 char *const envp[]=0) |
Execute a command. | |
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. | |
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. | |
Variables | |
String & | m_output |
int | m_outputLimit |
String | m_s |
bool | inIsOpen |
bool | outIsOpen |
bool | errIsOpen |
size_t | availableDataLen |
|
Definition at line 72 of file OW_Exec.cpp. |
|
Definition at line 791 of file OW_Exec.cpp. |
|
Definition at line 938 of file OW_Exec.cpp. |
|
Definition at line 937 of file OW_Exec.cpp. |
|
Definition at line 935 of file OW_Exec.cpp. |
|
Definition at line 819 of file OW_Exec.cpp. |
|
Definition at line 820 of file OW_Exec.cpp. |
|
Definition at line 844 of file OW_Exec.cpp. |
|
Definition at line 936 of file OW_Exec.cpp. |