Solved

can't open queue file

Posted on 1997-06-19
3
383 Views
Last Modified: 2013-12-23
When I print some reports through a program written in Informix, half way through the process, I actually do a Cancel to cancel the print job at the unix prompt.

Later when I try to print again, I got "lpstat: can't open output queue file". Does it means that the files is missing?
Do I have to delete the current virtual printer and add a new one??

0
Comment
Question by:ymlew
3 Comments
 
LVL 5

Expert Comment

by:n0thing
ID: 1582156
Hi,

   No you don't have to remove the queue and reinstall it. Do
simply "lpq" to list current print job on queue and "lprm" to
remove that job. These commands are for Solaris and some other
Unix variants, yours may be different.

Regards,
Minh Lai
0
 

Author Comment

by:ymlew
ID: 1582157
I tried to do a "lpg" to list the print job on queue but there are no print job.

Yet the system keeps telling me that no queue file is found.



0
 
LVL 1

Accepted Solution

by:
henrys earned 100 total points
ID: 1582158
This sequence usually works for me (Solaris 2.5):
Stop LP scheduler (lpshut)
Delete all queue files/directories (rm -r /var/spool/lp/tmp/* /var/spool/lp/requests/*)
Restart scheduler (lpsched)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let’s list some of the technologies that enable smooth teleworking. 
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now