PRINTERS
* -| X
* X printer2 -O
Printer1 * O
\ /
\ /
-------------------------
---------Terminal
COMPUTER
\\
|~~~~~~~~~~~~|
|~~~~~~~~~~~~|
| |
|~~~~~~~~~~~~|
| |
| |
OPTPRINT
lpstat OPTIONS:
a[list] - Prints acceptance status (with
respect to lp) of destinations for requests.
-d - Prints the name of the default destination
for the lp command.
-r - Prints the status of the line printer scheduler,
lpsched.
-t - Prints all status information.
LNEXT
ONELCLEAN
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q - to quit <CR> - to continue
GO
You may have guessed that a computer system may have one or more
printers. These printers may be printing, be idle, or be turned
off (not on-line).
In situations where there are several users on the same system,
the need to know the status of the printing requests arises very
often. The command that lets you determine the status of your
printer(s) is lpstat (for line printer status.
lpstat is a command that prints information about the current status
of the line printer system. It has several options, some of which are
described above. For greater details see your UNIX Reference Manual.
Note, you may include several options on one lpstat command line!
Let us use the lpstat command
to find the status of the line
printer system on your UNIX system.
Please enter the command to determine
both a) The acceptance status of
printing destinations, and b) The
status of the line printer scheduler.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type lpstat -r -a
Please type lpstat -r -a
You will be helped this time!
FORGET1
lpstat -r -a
Observe the result on the screen.
scheduler is running
printer accepting requests since Jan 19 16:09
lj accepting requests since Jan 19 17:44
DOSJMP1
command, with a "-s" option!
Now at the prompt, enter the lpstat
command to print all status
information for the printers on your
UNIX system. Note: the option you
will need to use is t!
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type lpstat -t
Please type lpstat -t
You will be helped this time!
FORGET2
lpstat -t
Observe the result above.
scheduler is running
system default destination: printer
device for printer: /dev/lp1
device for lj: /dev/lj
printer accepting requests since Jan 19 16:09
lj accepting requests since Jan 19 17:44
printer printer is idle. enabled since Jan 19 16:09
printer lj is idle. enabled since Jan 19 17:44