19 .TH tripectl 1 "19 February 2001" "Straylight/Edgeware" "TrIPE: Trivial IP Encryption"
21 tripectl \- simple client for TrIPE
50 .IB arg , arg ,\fR...]
54 program is a simple client which can be used, either interactively or
55 from a script, to send commands to and read status information from a
58 server. It can also be used to start
60 passing appropriate arguments and capturing logging information.
61 .SS "Command-line options"
64 Writes a brief description of the command-line options available to
65 standard output and exits with status 0.
68 Writes tripe's version number to standard output and exits with status
72 Writes a brief usage summary to standard output and exits with status 0.
77 disassociate from the terminal and become a background process after
78 connecting to the server.
80 .BI "\-d, \-\-directory=" dir
83 the current directory, before doing anything else. Note that all the
84 other filenames (e.g., the log output file) are relative to this
85 directory. The default directory, if this option is not specified, is
86 taken from the environment variable
88 if that's not defined either, a default default of
92 .BI "\-a, \-\-admin-socket=" socket
93 If connecting to a running server, connect to the socket named
95 if running a new server, instruct it to listen for admin
98 The default socket, if this option is not specified, is taken from the
101 if that's not defined either, a default default of
102 .B "@socketdir@/tripesock"
105 .BI "\-P, \-\-pidfile=" pidfile
116 options are given, a default of
117 .IB dir /tripectl.pid
118 is used if you don't give a
123 Start a new server: don't connect to an existing one. Starting a
125 server in this manner is a good way to ensure that no log messages are
131 options are particularly useful in conjunction with
134 .BI "\-p, \-\-spawn\-path=" path
137 runs the program named by
139 rather than the default
143 is actually an unqualified filename, the program to run is found using
146 environment variable in the usual way.
148 .BI "\-S, \-\-spawn\-args=" arg , arg ,\fR...
151 passes the comma-separated
155 server on its command line. Arguments added using this option are added
157 any passed automatically by
163 Send warnings and trace messages to the
165 service. Messages are logged using the
167 facility. Warnings are logged with severity
169 trace messages are logged with severity
172 .BI "\-f, \-\-logfile=" file
173 Write warnings and trace messages to
179 will close its log file and reopen a new one with the same name. This
180 is useful when you rotate logs.
182 .B "\-w, \-\-warnings"
183 Write warnings to standard error even when running noninteractively.
184 .SS "Interactive use"
187 will connect to a running server and await commands from its standard
188 input. The commands are submitted to the server unchanged, and the
189 results written to standard output. It will quit when it receives a
190 fatal signal or an end-of-file indication from the server.
191 .SS "Use from scripts"
192 If arguments are given to
194 they are quoted if necessary to protect spaces and other special
195 characters, concatenated with spaces between, and submitted to the
196 server after connection. Any
198 responses returned by the server are written to standard output (without
203 response causes the error message to be written to standard error, and
204 the client to exit with a nonzero return code. An
206 response causes the client to exit with a zero return code. Unless the
208 command-line option was given, any
210 responses are discarded; if
215 responses are written to standard error. In all cases,
217 responses are ignored.
218 .SS "Starting the tripe server"
219 If any of the options
228 server, rather than connecting to an existing one. This is most useful
229 if you want to collect logging information from the server, and want to
230 avoid losing any. For example, the command
232 tripectl -Ds -f tripe.log
234 starts up a new server in the default directory, and captures all of its
235 logging output (i.e.,
239 messages) in the file
241 It stores its process-id in
244 It's possible to communicate interactively with a newly-started server,
245 or to give it a command and quit, but this is seldom useful.
247 .BR tripe\-admin (5),
250 .IR "The Trivial IP Encryption Protocol" ,
251 .IR "The Wrestlers Protocol" .
253 Mark Wooding, <mdw@distorted.org.uk>