HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script - printer scheduler process
Operating System - HP-UX
1834608
Members
2712
Online
110069
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
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
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
03-08-2005 04:48 AM
03-08-2005 04:48 AM
script - printer scheduler process
Hi,
I need a script which should scheck for the printer scheduler process, if it fails it should restart the same.
I will be adding this script to cron to run for every 1 hour time.
Thanks
jagadesh
I need a script which should scheck for the printer scheduler process, if it fails it should restart the same.
I will be adding this script to cron to run for every 1 hour time.
Thanks
jagadesh
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 05:02 AM
03-08-2005 05:02 AM
Re: script - printer scheduler process
Some like follows.
lpstat -r || lpsched -v
lpstat -r || lpsched -v
There is no substitute to HARDWORK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 06:05 AM
03-08-2005 06:05 AM
Re: script - printer scheduler process
lpstat -r will let us know whether the scheduler is running or not so..
we need to use that output in the script matching to "scheduler not running" and if this condition is true we can restart the scheduler right?
we need to use that output in the script matching to "scheduler not running" and if this condition is true we can restart the scheduler right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2005 06:17 AM
03-08-2005 06:17 AM
Re: script - printer scheduler process
Yes, that is what lpstat -r does. You are really addressing the symptoms rather than the problem itself. You need to understand why lpsched is dying. Often, simply issueing an lpsched command is not enough because you also need to explicitly remove the SCHEDLOCK and/or the FIFO lock files before doing an lpsched. I would first look for and apply any lp related patches. Fix the problem and you won't need a cron Band-Aid.
If it ain't broke, I can fix that.
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 2025 Hewlett Packard Enterprise Development LP