- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to control the execution of batch job as a...
Operating System - HP-UX
1820243
Members
2427
Online
109621
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
Discussions
Discussions
Discussions
Forums
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
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
тАО04-30-2004 08:46 AM
тАО04-30-2004 08:46 AM
All,
How do I control the execution of a batch job that is exeucted through a script that I have written. Basically this script is an infinite loop which goes and executes after every 24 hrs. The users want their control on this script so they can stop and start it as they need.
So far I have one solution by creating a flag in a control table which this script will look and continue if this is set to TRUE. If the users want that script should not be executed they can update this falg to FALSE.
Is there any way I can do this at UNIX level instead of going in the backend.
Thank You,
How do I control the execution of a batch job that is exeucted through a script that I have written. Basically this script is an infinite loop which goes and executes after every 24 hrs. The users want their control on this script so they can stop and start it as they need.
So far I have one solution by creating a flag in a control table which this script will look and continue if this is set to TRUE. If the users want that script should not be executed they can update this falg to FALSE.
Is there any way I can do this at UNIX level instead of going in the backend.
Thank You,
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 08:49 AM
тАО04-30-2004 08:49 AM
Re: How to control the execution of batch job as and when desired
You could issue a kill -SIGSTOP and kill - SIGCONT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 08:49 AM
тАО04-30-2004 08:49 AM
Solution
This is probably better done using a cronjob fired off daily at some designated time. You cronjob might look for a file and if present exit immediately. I would create a small script to either create or rm this file as a means of user control.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2004 09:00 PM
тАО04-30-2004 09:00 PM
Re: How to control the execution of batch job as and when desired
If the user has the authority to use cron then the user can as well create an entry in the his/her crontab and hash (#) the same if the job need not to be run.
sks
sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP