class prog_exec system equivalent
| | prog_exec (const char* cmd) Constructor |
| | ~prog_exec () Destuctor |
| | operator! () Returns true on error |
| | cmd () const Returns the comand string |
| | pid () const Return the child process ID |
| | wait (int* stat_loc = 0, bool poll = false) Wait for child to terminate (returns exit code) If poll is true, the method will not block and return 0 in case the child process is still alive |
| | wait (double timeout, int* stat_loc = 0) Wait for child to terminate with timeout |
| | kill (int sig) Send a signal to the child |
| | prog_exec () Default constructor |
| | parse (const char* cmd) parse command line |
| | setcmd (const char* cmd) set the command |
| | setpid (int pid) set the pid |
| | path () const Return path |
| | args () const Return args |
Prog_exec. Starts a child process with fork and executes the string cmd with execlp.
virtual ~prog_exec()
virtual bool operator!()
virtual const char* cmd() const
virtual int pid() const
virtual int wait(int* stat_loc = 0, bool poll = false)
virtual int wait(double timeout, int* stat_loc = 0)
virtual bool kill(int sig)
prog_exec()
virtual bool parse(const char* cmd)
virtual void setcmd(const char* cmd)
virtual void setpid(int pid)
alphabetic index hierarchy of classes
Please send questions and comments to zweizig_j@ligo.caltech.edu
generated by doc++