BList< BString > BStringList
Definition: BString.h:209
bool Bool
Definition: BTypes.h:18
BUInt8 cmd
Definition: BoapMc.h:3
Error return class. This class is used to return the error status from a function....
Definition: BError.h:31
Implements system process manager.
Definition: BProc.h:39
BError wait(int &status, int timeoutMs=-1)
Wait for the process to complete. The programs exist status is returned in status....
Definition: BProc.cpp:69
BError runBackground(BString cmd, BStringList argList=BStringList())
Run the program in the background.
Definition: BProc.cpp:52
BProc()
Definition: BProc.cpp:18
BError runForeground(BString cmd, BStringList argList=BStringList(), int *status=0, int timeoutMs=-1)
Run the program in the foreground with optional status return value and timeout.
Definition: BProc.cpp:48
int getFd(int cmdFd)
Return the stdin - 0, stdout - 1 or stderr -2 file descriptor pipes to send or receive data to/from t...
Definition: BProc.cpp:60
int getPid()
Return the process ID of the program.
Definition: BProc.cpp:56
BError kill(int sig=SIGTERM)
Kill the process by sending it a signal.
Definition: BProc.cpp:108
void finish()
Tidy up when finised (closes all pipes).
Definition: BProc.cpp:119
BError usePipes(Bool fileIn, Bool fileOut, Bool fileErr)
Enable IO pipes for the processes standard file descriptors.
Definition: BProc.cpp:36
~BProc()
Definition: BProc.cpp:32
This class stores and manipulates ASCII strings.
Definition: BString.h:20