< Previous | Contents | Next >
lprm / cancel – Cancel Print Jobs
CUPS supplies two programs used to terminate print jobs and remove them from the print queue. One is Berkeley style (lprm) and the other is System V (cancel). They differ slightly in the options they support, but do basically the same thing. Using our print job above as an example, we could stop the job and remove it this way:
[me@linuxbox ~]$ cancel 603 [me@linuxbox ~]$ lpq printer is ready
no entries
[me@linuxbox ~]$ cancel 603 [me@linuxbox ~]$ lpq printer is ready
no entries
Each command has options for removing all the jobs belonging to a particular user, par- ticular printer, and multiple job numbers. Their respective man pages have all the details.