|
accel-cmd is a small program that reads commands from its command
line or standard input and sends them to accel-ppp (using the
tcp interface of the cli module). It displays accel-ppp's result
on standard output.
accel-cmd automatically appends the "exit" command to its command
list, so that accel-pppd will disconnect after sending its replies.
By default accel-cmd connects to localhost:2001.
Examples:
Send the "show sessions" command to accel-ppp and display the result:
$ accel-cmd show sessions
Execute commands from file "cmds" and display the results to stdout:
$ accel-cmd < cmds
Same as above, but use a different host and timeout after 1.5 seconds
of inactivity:
$ accel-cmd --timeout 1500ms --host accelppp.example.com < cmds
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
|