class RunShellCommand
|
A class for running an external command by invoking a shell.
More... |
|
|
Public Types
- typedef XorpCallback2<void, RunShellCommand*, const string&>::RefPtr OutputCallback
- typedef XorpCallback3<void, RunShellCommand*, bool, const string&>::RefPtr DoneCallback
- typedef XorpCallback2<void, RunShellCommand*, int>::RefPtr StoppedCallback
Public Methods
typedef XorpCallback2<void, RunShellCommand*, const string&>::RefPtr OutputCallback | OutputCallback |
typedef XorpCallback3<void, RunShellCommand*, bool, const string&>::RefPtr DoneCallback | DoneCallback |
typedef XorpCallback2<void, RunShellCommand*, int>::RefPtr StoppedCallback | StoppedCallback |
Constructor for a given command and its list with arguments.
Parameters:
eventloop | the event loop.
|
command | the command to execute.
|
argument_string | the string with the arguments for the command
to execute.
|
stdout_cb | the callback to call when there is data on the
standard output.
|
stderr_cb | the callback to call when there is data on the
standard error.
|
done_cb | the callback to call when the command is completed.
|
task_priority | the priority to read stdout and stderr.
|
void set_stopped_cb (StoppedCallback cb)
| set_stopped_cb |
Set the callback to dispatch when the program is stopped.
Parameters:
Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:10:36 2009, using kdoc 2.0a54+XORP.