05/04/02 11:46:08

Printer Tools
Support@crinc.com
Back To Support Page

mkdev lp                 Configure printers, enable and disable printers, cancel print jobs queued

lpstat -a                    Shows you the status, accepting request

cri386 #lpstat -a
clpt1 accepting requests since Fri Aug 2 17:42:46 1996
lpt1 accepting requests since Mon Apr 24 08:19:51 1995
aprt accepting requests since Thu Sep 11 22:02:42 1997
laser accepting requests since Thu May 15 09:33:08 1997
mine accepting requests since Thu Sep 11 22:02:42 1997
oki2 accepting requests since Fri Sep 12 09:13:27 1997
lpt3 accepting requests since Mon Jul 24 14:20:00 1995
oki182 accepting requests since Fri Sep 12 09:33:13 1997

lpstat -s                     Shows the device that printer is attached to.

cri386 #lpstat -s
system default destination: clpt1
device for clpt1: /dev/lp0
device for lpt1:lpt1 @somecomputer            
device for aprt: /dev/pra01
device for laser: laser1@somecomputer
device for mine: /dev/pra05
device for oki2: /dev/ttya04
device for lpt3: lpt3@somecomputer
device for oki182: /dev/ttya03

lpstat -p                show the status of a printer

cri386 #lpstat -p
printer clpt1 is idle. enabled since Wed Feb 25 14:03:36 1998. available.
printer lpt1 is idle. enabled since Tue Jul 30 09:33:05 1996. available.
printer aprt is idle. enabled since Thu Sep 11 22:03:02 1997. available.
printer laser is idle. enabled since Mon Dec 7 13:44:46 1998. available.
printer mine disabled since Mon Aug 23 16:40:13 1999. available.

                     ^^^^^^   ****
not connected (see wha)
printer oki2 is idle. enabled since Mon Mar 9 09:26:55 1998. available.
printer lpt3 is idle. enabled since Tue Nov 14 14:49:52 1995. available.
printer oki182 is idle. enabled since Fri Sep 12 09:33:22 1997. available.

enable mine                Enable the printer for use

disable mine             ****Will show the condition above

lpstat -t                     Shows all of the above to you.

lpstat -o                     Shows all of the jobs waiting to print or are now printing    

cri386 #lpstat -o
mine-67568                  root                         793 Sep 14 19:33
cancel mine-67568        Cancel a print job,  67568 is the job number

 
Support@crinc.com
Back To Support Page