diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-01-28 19:48:32 +0100 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-02-04 19:29:09 +0400 |
commit | 58ec2729b7c39488f21a1cc6f732b38cfa82f053 (patch) | |
tree | 326899447d1d88cde21a0784cbc792cbc097dad2 /crypto | |
parent | 47a70d8e43a2ca50672aa50bd0f1d4b25acb861f (diff) | |
download | accel-ppp-58ec2729b7c39488f21a1cc6f732b38cfa82f053.tar.gz accel-ppp-58ec2729b7c39488f21a1cc6f732b38cfa82f053.zip |
New client for the cli module (tcp)
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>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions