next up previous contents index
Next: Printing with lp Up: Printing Previous: Printing with lpr

Some Useful Unix Print Functions

Unix has a number of associated print functions which you may find useful. For a more comprehensive list and explanation of these functions the appropriate man page should be consulted. lpq  and lprm  are both Unix BSD commands, their equivalent in Unix System V are lpstat  and cancel  respectively. The commands to apply depend on the system in use:

 
 lpq      		 Typing this command at the prompt will initiate an 
                  examination of the

spooling areas used by lpd for printing files on the printer, and report on

the status of jobs in the queue.

The print queue can be examined in its entirity, or by individual users

or by printer (-P option) or jobs - see man pages for more details.

lprm This command can be used to remove a job or jobs from the printer's

spool queue. As the spooling directory is protected from users, using

lprm is normally the only method of removing a job.

You can remove jobs currently active, by job number or all jobs owned

by a specific user or you can specify a given printer queue with the -P option

- see man pages for more details.



Alan Silverman
Wed Apr 12 16:54:02 METDST 1995