print queue jobs


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting print queue jobs
# 1  
Old 06-10-2009
print queue jobs

Hi,
I have one queue that have status QUEUE and 10 jobs are waiting.Can any one guide me how i can get total number of jobs on this queue.i can see 10 jobs but i need to get count 10 for this queue.Please help me out thanks in advance
sagii
# 2  
Old 06-10-2009
Please post the command you typed and the output.
Also please state you Operating System in case there is a simple dodge by counting spool data files in the spool directory.
# 3  
Old 06-10-2009
hi,
here is the operation system and command with output
AIX version 5
lpstat -pedxxx319,edxxx318 -t -l


Queue Dev Status Job Files PP % Blks Cp Rnk User
------- ----- --------- --- ------------------ ---- -- ----- --- --- ---
QUEUED 974 ddcdev1_df.cfg 76 1 1 root
QUEUED 26 STDIN.118764 1 1 2 root
QUEUED 422 /dev_home/jlevy01/ 1 1 1 jle
QUEUED 564 test.txt 1 1 2 jle
QUEUED 809 /test_pf/rpts/engi 2 1 3 jle
QUEUED 810 /test_pf/rpts/engi 2 1 4 jle
QUEUED 90 /test_pf/rpts/engi 3 1 5 jle
QUEUED 91 /test_pf/rpts/engi 1 1 6 jle
QUEUED 93 /test_pf/rpts/engi 1 1 7 jle
QUEUED 94 /test_pf/rpts/engi 3 1 8 jle
QUEUED 801 /test_pf/rpts/engi 3 1 9 sah
QUEUED 802 /test_pf/rpts/engi 3 1 10 sah
QUEUED 803 /test_pf/rpts/engi 3 1 11 sah
QUEUED 819 /test_pf/rpts/engi 2 1 12 sah
QUEUED 820 /test_pf/rpts/engi 2 1 13 sah
QUEUED 821 /test_pf/rpts/engi 2 1 14 sah
QUEUED 822 /test_pf/rpts/engi 2 1 15 sah
QUEUED 823 /test_pf/rpts/engi 2 1 16 sah
QUEUED 824 /test_pf/rpts/engi 2 1 17 sah
QUEUED 825 /test_pf/rpts/engi 2 1 18 sah
QUEUED 872 /test_pf/rpts/engi 1 1 19 sah
QUEUED 873 /test_pf/rpts/engi 1 1 20 sah
edxxx31 edxxx READY
edxxx31 edxxx READY

-----Post Update-----

ddcdev1 2 % lpstat -pedxxx319,edxxx318 -t -l
Queue Dev Status Job Files PP % Blks Cp Rnk User
------- ----- --------- --- ------------------ ---- -- ----- --- --- ---
QUEUED 974 ddcdev1_df.cfg 76 1 1 root
QUEUED 26 STDIN.118764 1 1 2 root
QUEUED 422 /dev_home/jlevy01/ 1 1 1 jle
QUEUED 564 test.txt 1 1 2 jle
QUEUED 809 /test_pf/rpts/engi 2 1 3 jle
QUEUED 810 /test_pf/rpts/engi 2 1 4 jle
QUEUED 90 /test_pf/rpts/engi 3 1 5 jle
QUEUED 91 /test_pf/rpts/engi 1 1 6 jle
QUEUED 93 /test_pf/rpts/engi 1 1 7 jle
QUEUED 94 /test_pf/rpts/engi 3 1 8 jle
QUEUED 801 /test_pf/rpts/engi 3 1 9 sah
QUEUED 802 /test_pf/rpts/engi 3 1 10 sah
QUEUED 803 /test_pf/rpts/engi 3 1 11 sah
QUEUED 819 /test_pf/rpts/engi 2 1 12 sah
QUEUED 820 /test_pf/rpts/engi 2 1 13 sah
QUEUED 821 /test_pf/rpts/engi 2 1 14 sah
QUEUED 822 /test_pf/rpts/engi 2 1 15 sah
QUEUED 823 /test_pf/rpts/engi 2 1 16 sah
QUEUED 824 /test_pf/rpts/engi 2 1 17 sah
QUEUED 825 /test_pf/rpts/engi 2 1 18 sah
QUEUED 872 /test_pf/rpts/engi 1 1 19 sah
QUEUED 873 /test_pf/rpts/engi 1 1 20 sah
edxxx31 edxxx READY
edxxx31 edxxx READY
QUEUED is under status due copy and past it has been shifted left.Queue and Dev columns are empty, thanks,sagii

-----Post Update-----

ddcdev1 2 % lpstat -pedxxx319,edxxx318 -t -l
Queue Dev Status Job Files PP % Blks Cp Rnk User
------- ----- --------- --- ------------------ ---- -- ----- --- --- ---
QUEUED 974 ddcdev1_df.cfg 76 1 1 root
QUEUED 26 STDIN.118764 1 1 2 root
QUEUED 422 /dev_home/jlevy01/ 1 1 1 jle
QUEUED 564 test.txt 1 1 2 jle
QUEUED 809 /test_pf/rpts/engi 2 1 3 jle
QUEUED 810 /test_pf/rpts/engi 2 1 4 jle
QUEUED 90 /test_pf/rpts/engi 3 1 5 jle
QUEUED 91 /test_pf/rpts/engi 1 1 6 jle
QUEUED 93 /test_pf/rpts/engi 1 1 7 jle
QUEUED 94 /test_pf/rpts/engi 3 1 8 jle
QUEUED 801 /test_pf/rpts/engi 3 1 9 sah
QUEUED 802 /test_pf/rpts/engi 3 1 10 sah
QUEUED 803 /test_pf/rpts/engi 3 1 11 sah
QUEUED 819 /test_pf/rpts/engi 2 1 12 sah
QUEUED 820 /test_pf/rpts/engi 2 1 13 sah
QUEUED 821 /test_pf/rpts/engi 2 1 14 sah
QUEUED 822 /test_pf/rpts/engi 2 1 15 sah
QUEUED 823 /test_pf/rpts/engi 2 1 16 sah
QUEUED 824 /test_pf/rpts/engi 2 1 17 sah
QUEUED 825 /test_pf/rpts/engi 2 1 18 sah
QUEUED 872 /test_pf/rpts/engi 1 1 19 sah
QUEUED 873 /test_pf/rpts/engi 1 1 20 sah
edxxx31 edxxx READY
edxxx31 edxxx READY
QUEUED is under status due copy and past it has been shifted left.Queue and Dev columns are empty, thanks,sagii
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Print jobs stuck in queue

Hi, have an aix system with something I've never seen happening. All printers are not printing. I see jobs Queued and printer status as READY but jobs just keep getting queued and nothing's printing. Seems to be a system wide problem since it's affecting all printers. Help... (2 Replies)
Discussion started by: flash88
2 Replies

2. UNIX for Dummies Questions & Answers

Sco Unix printing : jobs hangs in queue - printing via lp versus hpnpf

Hi, We have a Unix 3.2v5.0.5. I installed a printer via scoadmin, HP network printer manager with network peripheral name (hostname and ipadres are in /etc/hosts). This is the configuration file : Code: root@sco1 # cat configurationBanner: on:AlwaysContent types: simpleDevice:... (0 Replies)
Discussion started by: haezeban
0 Replies

3. UNIX for Advanced & Expert Users

[Solved] remove all print jobs from a print queue

Hello, Sometimes i need to clear all the jobs of a print queue and it is really annoying to cancel one by one. Is there a way to cancel all print jobs for a specific print queue with a single command instead of cancelling them one by one? My AIX system is 5.3 Thank you for your attention (2 Replies)
Discussion started by: omonoiatis9
2 Replies

4. AIX

Print queue setup

Hi I had setup a print queue named test in the AIX server. When I try to print 96 char per line.. it prints only 80 and the rest is skipped to the next line. however there are 16 spaces left as blank in the first line any help is appriciated (0 Replies)
Discussion started by: antointoronto
0 Replies

5. Shell Programming and Scripting

print queue jobs

Hi, i m having problem to get number of jobs waiting using lpstat.my printer is out of paper and 10jobs are in queue but i run lpstat -pqname it didnt show any thing.any one have idea whats wrong here. thanks sagii (2 Replies)
Discussion started by: sagii
2 Replies

6. HP-UX

Print Queue jobs stuck

Hello, I have a print queue that the jobs are getting stuck in. I've disabled and enabled the queue, lpshut and lpsched the print spooler, and killed a suspected corrupt job. But new requests still get stuck. I can ping the printer by DNS with no problem. What else can I look for? I'm a little... (3 Replies)
Discussion started by: mizzleman
3 Replies

7. Solaris

Print to ps2pdf print queue

I am trying to create a printer queue, on a SunOS 5.7 system, that outputs a pdf file. There is an application running on the system that has a print button, which sends print files to the default printer. If I disable the printer, I am able to manually capture the files in /var/spool/lp/tmp and... (2 Replies)
Discussion started by: Sean_69
2 Replies

8. UNIX for Dummies Questions & Answers

Print to a ps2pdf print queue.

I am trying to create a printer queue, on a SunOS 5.7 system, that outputs a pdf file. There is an application running on the system that has a print button, which sends print files to the default printer. If I disable the printer, I am able to manually capture the files in /var/spool/lp/tmp and... (1 Reply)
Discussion started by: Sean_69
1 Replies

9. SCO

Print jobs getting stuck on the queue

I have implemented Laser printers using USB printer servers connected to a SCO server. Sometimes print jobs get stuck on the queue and I havent found a way of getting the printer back to work without canceling the jobs and rebooting the system. Why jobs get stuck? How do I get this solved... (9 Replies)
Discussion started by: iNetForce
9 Replies

10. UNIX for Advanced & Expert Users

jobs stalled in remote print queue

I have a printer in another state that is setup as follows: lj8100 printer connected to their printserver (a w2k box); users connect to a unix app on our Sun server via Exceed (we are two states away via WAN); users submit print jobs through an established print queue through the unix app to... (0 Replies)
Discussion started by: antalexi
0 Replies
Login or Register to Ask a Question