LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-21-2005, 10:09 PM   #1
bhar0761
Member
 
Registered: Jul 2005
Location: San Francisco
Distribution: Fedora Core 6
Posts: 64

Rep: Reputation: 15
Linux bash printing


I use lp and lpstat to print and to check the status of print jobs.
Is there a way to find out what documents where sent to the printer?
After I print something using
var1=$(ls *.ps)
lp $var1
It returns:
request id is printer1-103 (1 file(s))

Maybe there is a way to find whatever printed by the request id.

I've searched for weeks and can't find anyting using any of linux built in commands.
any help or suggestions would be great

Is lpq the only option?

Last edited by bhar0761; 08-21-2005 at 11:00 PM.
 
Old 08-23-2005, 06:47 AM   #2
doc.nice
Member
 
Registered: Oct 2004
Location: Germany
Distribution: Debian
Posts: 274

Rep: Reputation: 34
maybe you could print using a for loop,
i.e.

Code:
for printfile in $(ls -1 *.ps); do
  lp $printfile
  echo "$printfile is printed..."
done
is this what you want?


Flo
 
Old 08-23-2005, 11:53 AM   #3
bhar0761
Member
 
Registered: Jul 2005
Location: San Francisco
Distribution: Fedora Core 6
Posts: 64

Original Poster
Rep: Reputation: 15
True, but i really want to monitor the print queue;printing is not the problem. The problem would be finding what jobs had trouble printing and be able to do something about it.

Thanks
B
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finally working Linux to Linux printing 1kyle SUSE / openSUSE 2 09-22-2005 07:31 AM
Trouble printing raw from browser (maybe my lack of bash knowledge) karlmdv Linux - General 0 03-08-2005 06:53 PM
bash printing extended ASCII characters nutthick Programming 6 02-04-2005 02:15 PM
Cups Printing problem, Linux to Linux Printing problem folken718 Slackware 2 11-08-2004 10:10 AM
Always problems printing to Linux from Win and Linux cezarn Linux - General 0 10-08-2003 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:36 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