1833194 Members
3297 Online
110051 Solutions
New Discussion

Clearing Print Spooler

 
SOLVED
Go to solution
Devon Ainsworth
Occasional Contributor

Clearing Print Spooler

Is there a way to clear the whole spooler?
Instead of going to one by one in SAM to clear it?

Please let me know

Thank You

Devon
3 REPLIES 3
Mark Grant
Honored Contributor
Solution

Re: Clearing Print Spooler

You will find all your prints in /var/spool/lp/requests. In here are printer names containing the prints for each printer. You can delete the files in here.
Never preceed any demonstration with anything more predictive than "watch this"
Pete Randall
Outstanding Contributor

Re: Clearing Print Spooler

Devon,

You could write a simple script that uses a for loop. First shut down the spooler with the lpshut command, then use the lpstat command to get the list of requests, then cycle through that list in a "for" loop, canceling each request with the cancel command.


Pete


Pete
Devon Ainsworth
Occasional Contributor

Re: Clearing Print Spooler

Thank you.. much better :)

Devon