GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX - LPSHUT =>Stop spooler without cancelling cu...
Operating System - HP-UX
1848365
Members
6239
Online
104024
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
06-03-2002 01:44 PM
06-03-2002 01:44 PM
Objectif: Try to install or modify a queue without cancelling all the current jobs of other queues.
Problem: Everytime I need to create a queue with lpadmin, I must shutdown the spooler with lpshut. Causing all the current printing jobs been cancel. When I restart it with lpsched all jobs cancel by lpshut are resubmit enterely.
Is there any hide option we can usewith lpsched, lpadmin or lpshut?
Problem: Everytime I need to create a queue with lpadmin, I must shutdown the spooler with lpshut. Causing all the current printing jobs been cancel. When I restart it with lpsched all jobs cancel by lpshut are resubmit enterely.
Is there any hide option we can usewith lpsched, lpadmin or lpshut?
If it's not broke don't FIX it!!!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 06:08 PM
06-03-2002 06:08 PM
Re: HPUX - LPSHUT =>Stop spooler without cancelling current printing job.
Nope. This behavior is the design oh the SysV lp spooler. (Archaic isn't it? Especially when compared to a commercial quality spooler such as MPE on the HP 3000).
The only way to handle this is to perform lp spooler maintenance after hours or to disable all the printers in a script (waiting for current job to finish), then perform the changes and run lpsched.
The SysV spooler was designed in the days of greenbar paper and papertapes where a Unix computer with more than 5 printers was almost unknown.
Bill Hassell, sysadmin
The only way to handle this is to perform lp spooler maintenance after hours or to disable all the printers in a script (waiting for current job to finish), then perform the changes and run lpsched.
The SysV spooler was designed in the days of greenbar paper and papertapes where a Unix computer with more than 5 printers was almost unknown.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2002 06:29 PM
06-03-2002 06:29 PM
Re: HPUX - LPSHUT =>Stop spooler without cancelling current printing job.
Hi Eric,
What you can do is "reject" all the new print jobs. Then once all the print jobs are finished, shut the spooler and configure the printer. If you shut the spooler in the middle of a print job, it may start the print job from the begining when the spooler is started back.
Hope this helps.
Regds
What you can do is "reject" all the new print jobs. Then once all the print jobs are finished, shut the spooler and configure the printer. If you shut the spooler in the middle of a print job, it may start the print job from the begining when the spooler is started back.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2002 03:01 AM
06-04-2002 03:01 AM
Solution
Hi
If you disable your printers then the current jobs will finish and new jobs will go ot the queue but not be printed.
When all printing stops you can change your spooler and after the lpsched enable the printers again.
With this you can do it automatically.
#!/bin/ksh
#
#Printer parameter
#
# parameter is enable disable accept or reject to do all printers
#
option=$1
xx=`lpstat -p|grep printer|cut -f2 -d" "`
for printer in $xx
do
case $option in
accept) accept $printer ;;
reject) reject $printer ;;
enable) enable $printer ;;
disable) disable $printer ;;
*)echo invalid parameter ;;
esac
done
Steve Steel
If you disable your printers then the current jobs will finish and new jobs will go ot the queue but not be printed.
When all printing stops you can change your spooler and after the lpsched enable the printers again.
With this you can do it automatically.
#!/bin/ksh
#
#Printer parameter
#
# parameter is enable disable accept or reject to do all printers
#
option=$1
xx=`lpstat -p|grep printer|cut -f2 -d" "`
for printer in $xx
do
case $option in
accept) accept $printer ;;
reject) reject $printer ;;
enable) enable $printer ;;
disable) disable $printer ;;
*)echo invalid parameter ;;
esac
done
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP