- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Cron Question?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
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
тАО03-31-2009 10:10 AM
тАО03-31-2009 10:10 AM
Cron Question?
I want to run a script B 30 mins after script A, is the following the correct implementation -
49 */8 * * * A.pl
19 */9 * * * B.sh
Please guide.
Thanks,
Allan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 10:22 AM
тАО03-31-2009 10:22 AM
Re: Cron Question?
If you want to run A.pl at 8:49 and B.sh at 9:19, then:
49 8 * * * A.pl
19 9 * * * B.sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 10:26 AM
тАО03-31-2009 10:26 AM
Re: Cron Question?
The syntax you specified is a GNU (Linux) syntax not recognized by HP-UX.
You could have "script-A" 'sleep' for 1800 seconds (30-minutes) and thrn run "script-B" or you could have "script-A" issue:
at -f /home/script_B NOW +30 minutes
...to launch it.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 10:31 AM
тАО03-31-2009 10:31 AM
Re: Cron Question?
In hp the syntax you given will not work.Here is the syntax.
And this will work on everyday.
49 8 * * * A.pl
19 9 * * * B.sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 12:31 PM
тАО03-31-2009 12:31 PM
Re: Cron Question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2009 12:44 PM
тАО03-31-2009 12:44 PM
Re: Cron Question?
Thanks,
Allan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2009 03:22 AM
тАО04-04-2009 03:22 AM
Re: Cron Question?
I think the same format that i have given will work in Linux also.