1832217 Members
2411 Online
110041 Solutions
New Discussion

Print problem

 
SOLVED
Go to solution
Akram Shaik
Frequent Advisor

Print problem

Dear,

There were number of jobs fired to a specific printer.

But later the spooler had problems and it was restarted.

Now lpstat -o gives me output No entries for that printer.

But the the jobs are visible for that printer under /var/spool/lp/request/

Is there any way I can retrieve these jobs and print them?
Please advice

Thanks,
Akram
when everyting is coming your way then you are in the wrong lane
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Print problem

If you see files under /var/spool/lp/request/printername but lpstat -o reports nothing then that indicates a corrupt lp subsystem (possibly as a result of doing manual rm's under /var/spool/lp) rather than using the lpxxxx commands.

Issue an lpstat -o command to make sure that you are indeed looking at the right printer.
If, indeed, the files are still listed in the requuest directory but lpstat -o reports nothing then:

Do an lpshut.
cd /var/spool/lp/request/printername
copy the dA* files to another directory not in the /var/spool/lp tree.
rm *
lpsched

Now submit each of your copied files to lp as new jobs --- and hopefully the lp subsystem itself is not corrupt.


If it ain't broke, I can fix that.
Akram Shaik
Frequent Advisor

Re: Print problem

It worked Clay.

A handy help.. Great indeed... There were so many queued jobs.. So I got a script and did the thing... And all the print jobs were restored...
There were problems with permissions.. Then the permissions were put as lp:lp

It worked later
Thanks again Clay...

Cheers,
Akram

when everyting is coming your way then you are in the wrong lane