LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2004, 01:08 PM   #1
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Rep: Reputation: 15
removing printer jobs


After I compiled a new Kernel (2.6) my printer (hp Laserjet 2100/4) worked perfectly but I had a lot of jobs that were waiting to be printed out and so they were because I didn't know how to stop them.
So my question is: How can I remove specific printer jobs? (the easy way is the nicest )

I run Debian and openbox. (I know Konqueror have an easy way to do it but since I have openbox I can't do it that way)

Thanks!
 
Old 08-27-2004, 03:10 PM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
I don't think this is necessarily the easiest way but it will work on pretty much any UNIX printing system.

Open a terminal and type:
Code:
lpq
This will list all the print jobs, with an ID number and the name of the file being printed and the printing user.

You can remove the print job with a given ID using:

Code:
lprm ID
(You will need to be the owner of the print job to remove the job).
 
Old 08-28-2004, 06:34 AM   #3
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Original Poster
Rep: Reputation: 15
Thanks for the fast reply!
It worked perfectly but when I typed lpq I got

samel@confused:~$ lpq
lp is ready and printing
Rank Owner Job Files Total Size
active samel 3 (standard input) 646166 bytes
1st samel 4 (standard input) 1003436 bytes

Is there maybe a way that it could be more specific? "standard input" doesn't really tell me what file it is...
 
Old 08-30-2004, 04:05 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
"standard input" means that the file has been taken from the standard input (stdin) stream passed to lpq (or cupsd or whatever).

It's basically a default name used when the printing program doesn't bother to tell the print server what the job is called.

Sometimes you can just tell by the size of the print job.

You can fix this on the client side by using, for example,
Code:
lpr -t "Title" -
as the print command instead of
Code:
lpr -
. How to change this depends on the software being used; sometimes you may have to edit code (or petition the writers of the program) to put a document name on the print job.

You can see which documents are printing by looking in the appropriate place under /var/spool. For example, under CUPS, you will have a directory /var/spool/cups containing files like (for instance) d000ID-001. If you open these files with gv (in an X windows terminal)
Code:
gv /var/spool/cups/d000ID-001
it will show you what the contents of the file being printed are (assuming it's been converted to PostScript, which is usually the case).

Hope that helps,

Robert J. Lee
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Printer cancels jobs bobbens Linux - Hardware 0 01-10-2005 03:11 PM
jobs queued in cups but printer wont print samel_tvom Linux - Software 1 11-28-2004 10:03 PM
printer offline remove jobs collen Linux - General 0 11-26-2004 08:38 AM
Viewing Printer Jobs/Queues subaruwrx Linux - Newbie 2 11-16-2004 11:28 PM
Where printer stores queue jobs? mikeshn Linux - Hardware 3 12-19-2003 08:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:24 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration