diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-01-28 19:48:47 +0100 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-02-04 19:29:16 +0400 |
commit | e7ad63d1abcffd7afb7d52b0d3164eefda786b47 (patch) | |
tree | cbadf326e76a558029acee13e41e7c303147651b | |
parent | 58ec2729b7c39488f21a1cc6f732b38cfa82f053 (diff) | |
download | accel-ppp-e7ad63d1abcffd7afb7d52b0d3164eefda786b47.tar.gz accel-ppp-e7ad63d1abcffd7afb7d52b0d3164eefda786b47.zip |
Add manpage for accel-cmd
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
-rw-r--r-- | accel-cmd/accel-cmd.1 | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/accel-cmd/accel-cmd.1 b/accel-cmd/accel-cmd.1 new file mode 100644 index 0000000..ee2766e --- /dev/null +++ b/accel-cmd/accel-cmd.1 @@ -0,0 +1,87 @@ +.TH ACCEL-CMD 1 "January 2013" +.SH NAME +accel-cmd \- send commands to accel-ppp +.SH SYNOPSIS +.B accel-cmd +.RB [ -n "] [" -4 "] [" -6 "] [" -f " \fIFAMILY\fR] [" -H " \fIHOST\fR]" +.RB [ -p " \fIPORT\fR] [" -i " \fITIMEOUT\fR]" +.RI "[--] [" COMMAND "]" +.SH DESCRIPTION +.BR accel-cmd " is a client for accel-ppp's " cli " module. It sends" +.IR COMMAND "s to accel-ppp's tcp interface and displays the result on" +.RI "standard output. If no " COMMAND " is supplied, then" +.BR accel-cmd " reads and sends data from its standard input." +.SH OPTIONS +.TP +.BR \-f " \fIFAMILY\fR, " \-\-family "=\fIFAMILY\fR" +.RI "Connect to " HOST " using the given protocol family. Supported families" +.RB "are " inet " (IPv4), " inet6 " (IPv6) and " unspec " (automatic)." +.TP +.B \-4 +.RB "Shorcut for " "--family=inet" . +.TP +.B \-6 +.RB "Shorcut for " "--family=inet6" . +.TP +.BR \-H " \fIHOST\fR, " \-\-host "=\fIHOST\fR" +.RB "Set the host name or IP address to connect to. Defaults to " localhost . +.TP +.BR \-p " \fIPORT\fR, " \-\-port "=\fIPORT\fR" +Set the service name or port number on which connection should be done. +.RB "Defaults to " 2001 . +.TP +.BR \-n ", " \-\-numeric +.RI "Inhibit name resolution of " HOST " and " PORT ". In this case," +.IR HOST " must be an IP address and " PORT " a numeric port number." +.TP +.BR \-t " \fITIMEOUT\fR, " \-\-timeout "=\fITIMEOUT\fR" +.RB "Set an inactivity timeout." +.IR TIMEOUT " must be an integer and may be immediately followed by a time" +.RB "unit. Supported units are " s " (seconds), " ms " (milliseconds) and " us +.RB "(microseconds). The default unit is " s "." +.RI "If this option is not supplied, or if " TIMEOUT " is zero, then no" +timeout is set. +.TP +.BR \-v ", " \-\-verbose +Verbose output. +.TP +.BR \-V ", " \-\-version +Display version number and exit. +.TP +.BR \-h ", " \-\-help +Display help message and exit. +.SH EXAMPLES +.TP +Send the "show sessions" command to accel-ppp on localhost and display \ +the result on standard output: +$ accel-cmd show sessions +.TP +Execute commands stored in file "cmds": +$ accel-cmd < cmds +.TP +Same as above, but send commands to another host and timeout after \ +1.5 seconds of inactivity: +$ accel-cmd --timeout 1500ms --host accelppp.example.com < cmds +.SH EXIT STATUS +.TP +0 +success, +.TP +1 +invalid command line option, +.TP +2 +invalid parameter given to a command line option, +.TP +3 +connection to accel-ppp failed, +.TP +4 +timeout expired, +.TP +5 +\fICOMMAND\fR too big (standard input may be used instead \ +for sending big amounts of data), +.TP +100 (or above) +internal error. |