freebsd-dev/gnu/libexec/uucp/uustat/uustat.1

552 lines
12 KiB
Groff
Raw Normal View History

1999-08-27 23:37:10 +00:00
''' $FreeBSD$
.TH uustat 1 "Taylor UUCP 1.06"
1993-08-05 18:28:27 +00:00
.SH NAME
uustat \- UUCP status inquiry and control
.SH SYNOPSIS
.B uustat \-a
.PP
1994-05-07 18:14:43 +00:00
.B uustat \-\-all
.PP
1993-08-05 18:28:27 +00:00
.B uustat
[
1994-05-07 18:14:43 +00:00
.B \-eKRiMNQ ] [
1993-08-05 18:28:27 +00:00
.B \-sS
system ] [
.B \-uU
user ] [
.B \-cC
command ] [
1994-05-07 18:14:43 +00:00
.B \-oy
1993-08-05 18:28:27 +00:00
hours ] [
.B \-B
1994-05-07 18:14:43 +00:00
lines ] [
.B \-\-executions
] [
.B \-\-kill-all
] [
.B \-\-rejuvenate-all
] [
.B \-\-prompt
] [
.B \-\-mail
] [
.B \-\-notify
] [
.B \-\-no-list
] [
.B \-\-system
system ] [
.B \-\-not-system
system ] [
.B \-\-user
user ] [
.B \-\-not-user
user ] [
.B \-\-command
command ] [
.B \-\-not-command
command ] [
.B \-\-older-than
hours ] [
.B \-\-younger-than
hours ] [
.B \-\-mail-lines
1993-08-05 18:28:27 +00:00
lines ]
.PP
.B uustat
[
1994-05-07 18:14:43 +00:00
.B \-kr
1993-08-05 18:28:27 +00:00
jobid ] [
1994-05-07 18:14:43 +00:00
.B \-\-kill
jobid ] [
.B \-\-rejuvenate
1993-08-05 18:28:27 +00:00
jobid ]
.PP
1994-05-07 18:14:43 +00:00
.B uustat \-q [
.B \-sS
system ] [
.B \-oy
hours ] [
.B \-\-system
system ] [
.B \-\-not-system
system ] [
.B \-\-older-than
hours ] [
.B \-\-younger-than
hours ]
.PP
.B uustat \-\-list [
.B \-sS
system ] [
.B \-oy
hours ] [
.B \-\-system
system ] [
.B \-\-not-system
system ] [
.B \-\-older-than
hours ] [
.B \-\-younger-than
hours ]
1993-08-05 18:28:27 +00:00
.PP
.B uustat \-m
.PP
1994-05-07 18:14:43 +00:00
.B uustat \-\-status
.PP
1993-08-05 18:28:27 +00:00
.B uustat \-p
1994-05-07 18:14:43 +00:00
.PP
.B uustat \-\-ps
1993-08-05 18:28:27 +00:00
.SH DESCRIPTION
The
.I uustat
command can display various types of status information about the UUCP
system. It can also be used to cancel or rejuvenate requests made by
.I uucp
(1) or
.I uux
(1).
By default
.I uustat
displays all jobs queued up for the invoking user, as if given the
1994-05-07 18:14:43 +00:00
.B \-\-user
1993-08-05 18:28:27 +00:00
option with the appropriate argument.
If any of the
.B \-a,
1994-05-07 18:14:43 +00:00
.B \-\-all,
1993-08-05 18:28:27 +00:00
.B \-e,
1994-05-07 18:14:43 +00:00
.B \-\-executions,
1993-08-05 18:28:27 +00:00
.B \-s,
1994-05-07 18:14:43 +00:00
.B \-\-system,
1993-08-05 18:28:27 +00:00
.B \-S,
1994-05-07 18:14:43 +00:00
.B \-\-not-system,
1993-08-05 18:28:27 +00:00
.B \-u,
1994-05-07 18:14:43 +00:00
.B \-\-user,
1993-08-05 18:28:27 +00:00
.B \-U,
1994-05-07 18:14:43 +00:00
.B \-\-not-user,
1993-08-05 18:28:27 +00:00
.B \-c,
1994-05-07 18:14:43 +00:00
.B \-\-command,
1993-08-05 18:28:27 +00:00
.B \-C,
1994-05-07 18:14:43 +00:00
.B \-\-not-command,
1993-08-05 18:28:27 +00:00
.B \-o,
1994-05-07 18:14:43 +00:00
.B \-\-older-than,
.B \-y,
.B \-\-younger-than
1993-08-05 18:28:27 +00:00
options are given, then all jobs which match the combined
specifications are displayed.
The
.B \-K
1994-05-07 18:14:43 +00:00
or
.B \-\-kill-all
1993-08-05 18:28:27 +00:00
option may be used to kill off a selected group of jobs, such as all
jobs more than 7 days old.
.SH OPTIONS
The following options may be given to
.I uustat.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-a, \-\-all
1993-08-05 18:28:27 +00:00
List all queued file transfer requests.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-e, \-\-executions
1993-08-05 18:28:27 +00:00
List queued execution requests rather than queued file transfer
requests. Queued execution requests are processed by
.I uuxqt
(8) rather than
.I uucico
(8). Queued execution requests may be waiting for some file to be
transferred from a remote system. They are created by an invocation
of
.I uux
(1).
.TP 5
1994-05-07 18:14:43 +00:00
.B \-s system, \-\-system system
List all jobs queued up for the named system. These options may be
1993-08-05 18:28:27 +00:00
specified multiple times, in which case all jobs for all the systems
1994-05-07 18:14:43 +00:00
will be listed. If used with
.B \-\-list
only the systems named will be listed.
1993-08-05 18:28:27 +00:00
.TP 5
1994-05-07 18:14:43 +00:00
.B \-S system, \-\-not-system system
List all jobs queued for systems other than the one named. These
options may be specified multiple times, in which case no jobs from
any of the specified systems will be listed. If used with
.B \-\-list
only the systems not named will be listed. These options may not be
used with
.B \-s
or
.B \-\-system.
1993-08-05 18:28:27 +00:00
.TP 5
1994-05-07 18:14:43 +00:00
.B \-u user, \-\-user user
List all jobs queued up for the named user. These options may be
1993-08-05 18:28:27 +00:00
specified multiple times, in which case all jobs for all the users
will be listed.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-U user, \-\-not-user user
List all jobs queued up for users other than the one named. These
options may be specified multiple times, in which case no jobs from
any of the specified users will be listed. These options may not be
used with
.B \-u
or
.B \-\-user.
1993-08-05 18:28:27 +00:00
.TP 5
1994-05-07 18:14:43 +00:00
.B \-c command, \-\-command command
1993-08-05 18:28:27 +00:00
List all jobs requesting the execution of the named command. If
.B command
is
.I ALL
this will list all jobs requesting the execution of some command (as
1994-05-07 18:14:43 +00:00
opposed to simply requesting a file transfer). These options may be
1993-08-05 18:28:27 +00:00
specified multiple times, in which case all jobs requesting any of the
commands will be listed.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-C command, \-\-not-command command
1993-08-05 18:28:27 +00:00
List all jobs requesting execution of some command other than the
named command, or, if
.B command
is
.I ALL,
list all jobs that simply request a file transfer (as opposed to
1994-05-07 18:14:43 +00:00
requesting the execution of some command). These options may be
1993-08-05 18:28:27 +00:00
specified multiple times, in which case no job requesting one of the
1994-05-07 18:14:43 +00:00
specified commands will be listed. These options may not be used with
.B \-c
or
.B \-\-command.
1993-08-05 18:28:27 +00:00
.TP 5
1994-05-07 18:14:43 +00:00
.B \-o hours, \-\-older-than hours
List all queued jobs older than the given number of hours. If used
with
.B \-\-list
only systems whose oldest job is older than the given number of hours
will be listed.
1993-08-05 18:28:27 +00:00
.TP 5
1994-05-07 18:14:43 +00:00
.B \-y hours, \-\-younger-than hours
List all queued jobs younger than the given number of hours. If used
with
.B \-\-list
only systems whose oldest job is younger than the given number of
hours will be listed.
1993-08-05 18:28:27 +00:00
.TP 5
1994-05-07 18:14:43 +00:00
.B \-k jobid, \-\-kill jobid
1993-08-05 18:28:27 +00:00
Kill the named job. The job id is shown by the default output format,
as well as by the
.B \-j
1994-05-07 18:14:43 +00:00
or
.B \-\-jobid
1993-08-05 18:28:27 +00:00
option to
.I uucp
(1) or
.I uux
(1). A job may only be killed by the user who created the job, or by
the UUCP administrator or the superuser. The
.B \-k
1994-05-07 18:14:43 +00:00
or
.B \-\-kill
options may be used multiple times on the command line to kill several
1993-08-05 18:28:27 +00:00
jobs.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-r jobid, \-\-rejuvenate jobid
1993-08-05 18:28:27 +00:00
Rejuvenate the named job. This will mark it as having been invoked at
the current time, affecting the output of the
1994-05-07 18:14:43 +00:00
.B \-o,
.B \-\-older-than,
.B \-y,
1993-08-05 18:28:27 +00:00
or
1994-05-07 18:14:43 +00:00
.B \-\-younger-than
1993-08-05 18:28:27 +00:00
options and preserving it from any automated cleanup daemon. The job
id is shown by the default output format, as well as by the
.B \-j
1994-05-07 18:14:43 +00:00
or
.B \-\-jobid
options to
1993-08-05 18:28:27 +00:00
.I uucp
(1) or
.I uux
(1). A job may only be rejuvenated by the user who created the job,
or by the UUCP administrator or the superuser. The
.B \-r
1994-05-07 18:14:43 +00:00
or
.B \-\-rejuvenate
options may be used multiple times on the command line to rejuvenate
1993-08-05 18:28:27 +00:00
several jobs.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-q, \-\-list
1993-08-05 18:28:27 +00:00
Display the status of commands, executions and conversations for all
1994-05-07 18:14:43 +00:00
remote systems for which commands or executions are queued. The
.B \-s,
.B \-\-system,
.B \-S,
.B \-\-not-system,
.B \-o,
.B \-\-older-than,
.B \-y,
and
.B \-\-younger-than
options may be used to restrict the systems which are listed. Systems
for which no commands or executions are queued will never be listed.
1993-08-05 18:28:27 +00:00
.TP 5
1994-05-07 18:14:43 +00:00
.B \-m, \-\-status
1993-08-05 18:28:27 +00:00
Display the status of conversations for all remote systems.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-p, \-\-ps
1993-08-05 18:28:27 +00:00
Display the status of all processes holding UUCP locks on systems or
ports.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-i, \-\-prompt
1993-08-05 18:28:27 +00:00
For each listed job, prompt whether to kill the job or not. If the
first character of the input line is
.I y
or
.I Y
the job will be killed.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-K, \-\-kill-all
1993-08-05 18:28:27 +00:00
Automatically kill each listed job. This can be useful for automatic
cleanup scripts, in conjunction with the
1994-05-07 18:14:43 +00:00
.B \-\-mail
1993-08-05 18:28:27 +00:00
and
1994-05-07 18:14:43 +00:00
.B \-\-notify
1993-08-05 18:28:27 +00:00
options.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-R, \-\-rejuvenate-all
Automatically rejuvenate each listed job. This may not be used with
.B \-\-kill-all.
.TP 5
.B \-M, \-\-mail
1993-08-05 18:28:27 +00:00
For each listed job, send mail to the UUCP administrator. If the job
is killed (due to
1994-05-07 18:14:43 +00:00
.B \-\-kill-all
1993-08-05 18:28:27 +00:00
or
1994-05-07 18:14:43 +00:00
.B \-\-prompt
1993-08-05 18:28:27 +00:00
with an affirmative response) the mail will indicate that. A comment
specified by the
1994-05-07 18:14:43 +00:00
.B \-\-comment
1993-08-05 18:28:27 +00:00
option may be included. If the job is an execution, the initial
portion of its standard input will be included in the mail message;
the number of lines to include may be set with the
1994-05-07 18:14:43 +00:00
.B \-\-mail-lines
1993-08-05 18:28:27 +00:00
option (the default is 100). If the standard input contains null
characters, it is assumed to be a binary file and is not included.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-N, \-\-notify
1993-08-05 18:28:27 +00:00
For each listed job, send mail to the user who requested the job. The
mail is identical to that sent by the
.B \-M
1994-05-07 18:14:43 +00:00
or
.B \-\-mail
options.
1993-08-05 18:28:27 +00:00
.TP 5
.B \-W comment, \-\-comment comment
1993-08-05 18:28:27 +00:00
Specify a comment to be included in mail sent with the
1994-05-07 18:14:43 +00:00
.B \-M,
.B \-\-mail,
.B \-N,
1993-08-05 18:28:27 +00:00
or
1994-05-07 18:14:43 +00:00
.B \-\-notify
1993-08-05 18:28:27 +00:00
options.
.TP 5
.B \-B lines, \-\-mail-lines lines
When the
.B \-M,
.B \-\-mail,
.B \-N,
or
.B \-\-notify
options are used to send mail about an execution with standard input,
this option controls the number of lines of standard input to include
in the message. The default is 100.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-Q, \-\-no-list
1993-08-05 18:28:27 +00:00
Do not actually list the job, but only take any actions indicated by
the
.B \-i,
1994-05-07 18:14:43 +00:00
.B \-\-prompt,
1993-08-05 18:28:27 +00:00
.B \-K,
1994-05-07 18:14:43 +00:00
.B \-\-kill-all,
1993-08-05 18:28:27 +00:00
.B \-M,
1994-05-07 18:14:43 +00:00
.B \-\-mail,
1993-08-05 18:28:27 +00:00
.B \-N
1994-05-07 18:14:43 +00:00
or
.B \-\-notify
1993-08-05 18:28:27 +00:00
options.
.TP 5
1994-05-07 18:14:43 +00:00
.B \-x type, \-\-debug type
1993-08-05 18:28:27 +00:00
Turn on particular debugging types. The following types are
recognized: abnormal, chat, handshake, uucp-proto, proto, port,
config, spooldir, execute, incoming, outgoing. Only abnormal, config,
spooldir and execute are meaningful for
.I uustat.
Multiple types may be given, separated by commas, and the
1994-05-07 18:14:43 +00:00
.B \-\-debug
1993-08-05 18:28:27 +00:00
option may appear multiple times. A number may also be given, which
will turn on that many types from the foregoing list; for example,
1994-05-07 18:14:43 +00:00
.B \-\-debug 2
1993-08-05 18:28:27 +00:00
is equivalent to
1994-05-07 18:14:43 +00:00
.B \-\-debug abnormal,chat.
1993-08-05 18:28:27 +00:00
.TP 5
1994-05-07 18:14:43 +00:00
.B \-I file, \-\-config file
1993-08-05 18:28:27 +00:00
Set configuration file to use. This option may not be available,
depending upon how
.I uustat
was compiled.
1994-05-07 18:14:43 +00:00
.TP 5
.B \-v, \-\-version
Report version information and exit.
.TP 5
.B \-\-help
Print a help message and exit.
1993-08-05 18:28:27 +00:00
.SH EXAMPLES
1994-05-07 18:14:43 +00:00
.br
.nf
uustat --all
.fi
1993-08-05 18:28:27 +00:00
Display status of all jobs. A sample output line is as follows:
1994-05-07 18:14:43 +00:00
.br
.in +0.5i
.nf
1993-08-05 18:28:27 +00:00
bugsA027h bugs ian 04-01 13:50 Executing rmail ian@airs.com (sending 1283 bytes)
1994-05-07 18:14:43 +00:00
.fi
.in -0.5i
1993-08-05 18:28:27 +00:00
The format is
1994-05-07 18:14:43 +00:00
.br
.in +0.5i
.nf
1993-08-05 18:28:27 +00:00
jobid system user queue-date command (size)
1994-05-07 18:14:43 +00:00
.fi
.in -0.5i
1993-08-05 18:28:27 +00:00
The jobid may be passed to the
1994-05-07 18:14:43 +00:00
.B \-\-kill
1993-08-05 18:28:27 +00:00
or
1994-05-07 18:14:43 +00:00
.B \-\-rejuvenate
1993-08-05 18:28:27 +00:00
options.
The size indicates how much data is to be transferred to the remote
system, and is absent for a file receive request.
The
1994-05-07 18:14:43 +00:00
.B \-\-system,
.B \-\-not-system,
.B \-\-user,
.B \-\-not-user,
.B \-\-command,
.B \-\-not-command,
.B \-\-older-than,
1993-08-05 18:28:27 +00:00
and
1994-05-07 18:14:43 +00:00
.B \-\-younger-than
1993-08-05 18:28:27 +00:00
options may be used to control which jobs are listed.
1994-05-07 18:14:43 +00:00
.br
.nf
uustat --executions
.fi
1993-08-05 18:28:27 +00:00
Display status of queued up execution requests. A sample output line
is as follows:
1994-05-07 18:14:43 +00:00
.br
.in +0.5i
.nf
1993-08-05 18:28:27 +00:00
bugs bugs!ian 05-20 12:51 rmail ian
1994-05-07 18:14:43 +00:00
.fi
.in -0.5i
1993-08-05 18:28:27 +00:00
The format is
1994-05-07 18:14:43 +00:00
.br
.in +0.5i
.nf
1993-08-05 18:28:27 +00:00
system requestor queue-date command
1994-05-07 18:14:43 +00:00
.fi
.in -0.5i
1993-08-05 18:28:27 +00:00
The
1994-05-07 18:14:43 +00:00
.B \-\-system,
.B \-\-not-system,
.B \-\-user,
.B \-\-not-user,
.B \-\-command,
.B \-\-not-command,
.B \-\-older-than,
1993-08-05 18:28:27 +00:00
and
1994-05-07 18:14:43 +00:00
.B \-\-younger-than
1993-08-05 18:28:27 +00:00
options may be used to control which requests are listed.
1994-05-07 18:14:43 +00:00
.br
.nf
uustat --list
.fi
1993-08-05 18:28:27 +00:00
Display status for all systems with queued up commands. A sample
output line is as follows:
1994-05-07 18:14:43 +00:00
.br
.in +0.5i
.nf
1993-08-05 18:28:27 +00:00
bugs 4C (1 hour) 0X (0 secs) 04-01 14:45 Dial failed
1994-05-07 18:14:43 +00:00
.fi
.in -0.5i
1993-08-05 18:28:27 +00:00
This indicates the system, the number of queued commands, the age of
the oldest queued command, the number of queued local executions, the
age of the oldest queued execution, the date of the last conversation,
and the status of that conversation.
1994-05-07 18:14:43 +00:00
.br
.nf
uustat --status
.fi
1993-08-05 18:28:27 +00:00
Display conversation status for all remote systems. A sample output
line is as follows:
1994-05-07 18:14:43 +00:00
.br
.in +0.5i
.nf
1993-08-05 18:28:27 +00:00
bugs 04-01 15:51 Conversation complete
1994-05-07 18:14:43 +00:00
.fi
.in -0.5i
1993-08-05 18:28:27 +00:00
This indicates the system, the date of the last conversation, and the
status of that conversation. If the last conversation failed,
.I uustat
will indicate how many attempts have been made to call the system. If
the retry period is currently preventing calls to that system,
.I uustat
also displays the time when the next call will be permitted.
1994-05-07 18:14:43 +00:00
.br
.nf
uustat --ps
.fi
1993-08-05 18:28:27 +00:00
Display the status of all processes holding UUCP locks. The output
format is system dependent, as
.I uustat
simply invokes
.I ps
(1) on each process holding a lock.
1994-05-07 18:14:43 +00:00
.br
.in +0.5i
.nf
uustat --command rmail --older-than 168 --kill-all --no-list --mail --notify --comment "Queued for over 1 week"
.fi
.in -0.5i
1993-08-05 18:28:27 +00:00
This will kill all
.I rmail
commands that have been queued up waiting for delivery for over 1 week
(168 hours). For each such command, mail will be sent both to the
UUCP administrator and to the user who requested the rmail execution.
The mail message sent will include the string given by the
1994-05-07 18:14:43 +00:00
.B \-\-comment
1993-08-05 18:28:27 +00:00
option. The
1994-05-07 18:14:43 +00:00
.B \-\-no-list
1993-08-05 18:28:27 +00:00
option prevents any of the jobs from being listed on the terminal, so
any output from the program will be error messages.
.SH FILES
The file names may be changed at compilation time or by the
configuration file, so these are only approximations.
.br
/etc/uucp/config - Configuration file.
1993-08-05 18:28:27 +00:00
.br
/var/spool/uucp -
1993-08-05 18:28:27 +00:00
UUCP spool directory.
.SH SEE ALSO
ps(1), rmail(8), uucp(1), uux(1), uucico(8), uuxqt(8)
1993-08-05 18:28:27 +00:00
.SH AUTHOR
Ian Lance Taylor
1994-05-07 18:14:43 +00:00
(ian@airs.com)