Computing.Net > Forums > Unix > Canceling print jobs

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Canceling print jobs

Reply to Message Icon

Name: Alex
Date: July 19, 1999 at 15:34:48 Pacific
Comment:

Is there a way for a user to cancel all of his print jobs with one command that can be entered into a shell script.SCO Unix
Thanks,
Muchas gracias



Sponsored Link
Ads by Google

Response Number 1
Name: Anthony
Date: July 20, 1999 at 05:18:42 Pacific
Reply:

Try this :

# Script starts here
cancel `lpstat $1|awk '{print $1}'`
# Script ends here

The first $1 can be the printer name or parameter one on the command line.

Regards,

Anthony.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Canceling print jobs

Cancelling multiple print jobs www.computing.net/answers/unix/cancelling-multiple-print-jobs-/4782.html

Spooling print jobs to HP laser printer www.computing.net/answers/unix/spooling-print-jobs-to-hp-laser-printer/2559.html

Limiting Print Jobs www.computing.net/answers/unix/limiting-print-jobs/3639.html