- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Scripts to clear printer queues
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 10:28 PM
09-29-2003 10:28 PM
Scripts to clear printer queues
I am looking for help on two print queue issues.
First, I have a script under the login "pfix" that has a selection to allow the help desk to clear printer queues. The selection just cd's to /var/spool/lp/request/"printername" and does an "rm *" and deletes anything in the directory. Hence it clears the queue for that printer. The problem is that some printers can be cleared and others say "permission denied". I am confused as all queues were created in SAM so they are esentially identical except for the specific info such as IP and name.
Why would this be happening. Do I need to change a setting when the printer is created. If so, how can I modify each printer?
Second, I would be interested to see any other scripts (PERL, Shell, etc..) or suggestions on allowing the help desk to clear queues without my intervention. This is a regular function for the help desk and I need to make it as simple as possible. SAM restricted is still a bit to complex.
I have also considered WEBMIN but I am not sure if I want to go this route. I think a script such as what I am already doing with a single selection and enter the printer name to clear is the best route.
Thanks,
Craig
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 11:04 PM
09-29-2003 11:04 PM
Re: Scripts to clear printer queues
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 11:11 PM
09-29-2003 11:11 PM
Re: Scripts to clear printer queues
How about restricted sam for the helpdesk, you can build a restricted sam with the sam -r command. Take a look at the man pages of sam.
Hope it helps,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2003 11:53 PM
09-29-2003 11:53 PM
Re: Scripts to clear printer queues
Hope it helps,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2003 12:15 AM
09-30-2003 12:15 AM
Re: Scripts to clear printer queues
Here is small manager-package for
printing system consists of 2
HP-printers.
regards,Stan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2003 12:16 AM
09-30-2003 12:16 AM
Re: Scripts to clear printer queues
Here is small manager-package for
printing system consists of 2
HP-printers,written by shell-scripts.
regards,Stan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2003 12:37 AM
09-30-2003 12:37 AM
Re: Scripts to clear printer queues
Rita, what user is the script running as? Is it SUDO or do you have your printers set to allow any user to cancel a job?
JS, how do you use this attachment? The extensions are new to me.
One additonal question. Is there a way to modify a printer to allow any user to cancel a job? I think that most of mine require root.
Craig
JS,