class RunShellCommand

A class for running an external command by invoking a shell. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods


Detailed Description

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

 RunShellCommand (EventLoop& eventloop, const string& command, const string& argument_string, RunShellCommand::OutputCallback stdout_cb, RunShellCommand::OutputCallback stderr_cb, RunShellCommand::DoneCallback done_cb)

RunShellCommand

Constructor for a given command and its list with arguments.

Parameters:

eventloopthe event loop.
commandthe command to execute.
argument_stringthe string with the arguments for the command to execute.
stdout_cbthe callback to call when there is data on the standard output.
stderr_cbthe callback to call when there is data on the standard error.
done_cbthe callback to call when the command is completed.
void  set_stopped_cb (StoppedCallback cb)

set_stopped_cb

Set the callback to dispatch when the program is stopped.

Parameters:

cbthe callback's value.

Generated by: pavlin on possum.icir.org on Wed Mar 21 11:22:16 2007, using kdoc $.