LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-22-2006, 01:46 PM   #1
joseppi
LQ Newbie
 
Registered: Jul 2006
Location: Mesa, Arizona
Distribution: Mandriva 2006 with Win4Lin
Posts: 5

Rep: Reputation: 0
How to *absolutely* kill pending print jobs?


I have tried 'lpstat' and 'cancel spoolfilename'.
I have tried 'lpq' and 'lprm'
I have tried deleting files in /var/spool/cups and /var/spool/cups/tmp
I have tried turning the printer off and back on

But every time I turn the printer back on, it keeps trying to print a pending print file with a never-ending flow of *blank* pages.

Surely there must be some way to *absolutely* kill pending print jobs. What is the best way to do so?

joe at actionline.com
 
Old 08-22-2006, 02:33 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by joseppi
But every time I turn the printer back on, it keeps trying to print a pending print file with a never-ending flow of *blank* pages.
Turn off the printer. Unplug it's USB, parallel, or network cable (whatever you have connecting it to the computer). Turn the printer back on.

If it starts trying to print again then the job is somehow queued IN THE PRINTER and not in Linux. I would not expect your printer to have this capability, but not knowing your hardware, it certainly could. Especially if it's an expensive multi-user heavy-duty network gadget.

Are there any other queues between where you're trying the 'cancel' command, etc., and the actual printer? i.e., has the job already left your local queue and is sitting in SOME OTHER system's queue? Can you see the job listed in your local queue? After you try a cancel can you verify that the job is no longer listed in your local queue? What triggers the job to reappear in your local queue if in fact it's dissappearing after a cancel commnad?
 
Old 08-22-2006, 02:34 PM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I've not had any problems using lprm with a dash ( - )
Code:
lprm -
 
Old 08-22-2006, 02:40 PM   #4
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Run 'lpstat -o' to get a list of pending print jobs, then run '/usr/bin/cancel hplj4-01' assuming hplj4-01 is the print job. Make sure you specify /usr/bin/cancel and not cancel, especially with older versions of cups. There is a for loop that I run when I want to cancel all jobs.
 
Old 08-25-2006, 03:41 PM   #5
seelenbild28
Member
 
Registered: Oct 2005
Location: Germany, Berlin
Distribution: SuSE Linux 9.1/9.2/9.3/10.0/10.1, openSuSE 10.2, 10.3, Slackware, Debian, Redhat, BSD
Posts: 315

Rep: Reputation: 30
the first thing I would do is putting the paper out of the printer...*g
 
Old 08-25-2006, 04:40 PM   #6
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
I agree with haertig. But I would add one step. After turning off the printer and unplugging the cable by with the computer communicates with the printer, also unplug the power cord.

Reason: It may be that turning off the printer doesn't completely turn off electrical power to all circuits. Such as, a warming circuit (read standby mode) so that the printer is up and ready quickly after turning power back on. Such standby power may also maintain power to memory circuits which have not been flushed on print job completion (I've had jobs remain in memory even though power was turned off and the parrallel cable disconnected). Only by also unplugging the power cord was I able to completely clear memory and loose the troublesome print job. (Printer this happened on: HP 882C).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kill all Background Jobs jwprz70 Linux - Newbie 10 05-12-2010 01:29 AM
Print jobs repeat infinetly on lpd printer attached to axis print server linux-who? Linux - Hardware 0 03-28-2006 11:24 AM
bash script: run multiple jobs in bg, & kill them separately? mattengland Programming 1 03-26-2006 05:07 PM
mandrake 9.2 kill jobs krome Mandriva 3 06-04-2005 02:56 AM
Commands (jobs and kill) xviddivxoggmp3 Linux - General 2 08-01-2004 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration