- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Cron batch job 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
тАО04-10-2007 06:37 AM
тАО04-10-2007 06:37 AM
I have this cron job that runs every 15 minutes. Now, I would like to have it run 4 times a day, starting at 6:30 AM. How would I change the time format in the cron job?
Thank you in advance.
Jorge
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2007 06:50 AM
тАО04-10-2007 06:50 AM
Re: Cron batch job question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2007 06:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2007 06:58 AM
тАО04-10-2007 06:58 AM
Re: Cron batch job question
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2007 07:55 AM
тАО04-10-2007 07:55 AM
Re: Cron batch job question
I made my suggestion based on the fact that I'm too old and too lazy to type in four lines. :)
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2007 08:12 AM
тАО04-10-2007 08:12 AM
Re: Cron batch job question
Thanks for your help.
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2007 12:08 PM
тАО04-10-2007 12:08 PM
Re: Cron batch job question
30 6/6 * * * /some/batch/script
Which translates into start at 6:30 (the first 6 in the hours field plus the minutes field) and run after every 6hrs (24hrs/4= 6 hrs => second 6 in the hours field)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-10-2007 12:21 PM
тАО04-10-2007 12:21 PM
Re: Cron batch job question
This will work fine on the cron daemon used on most Linux distributions for the past 10 years or so (go Vixie crond!); just be careful when you use other OS's. Some of them don't have a cron daemon as flexable.
Other things to note are things like '/etc/crontab', and '/etc/cron.d/' on top of user crontab's (modified using '/usr/bin/crontab -e'.
So very very useful, especially for distributing jobs to other servers.. ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2007 04:51 AM
тАО04-11-2007 04:51 AM
Re: Cron batch job question
I made the changes like John had recommended. However, the cron job is not running though. I can't seem to see any syntax errors. Although, is there a space after the comma (30 06,10,13,19, ei)>>>
Please help.
Thanks,
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-11-2007 07:48 AM
тАО04-11-2007 07:48 AM
Re: Cron batch job question
30 6,12,18,00 * * * /some/batch/script >>/var/tmp/script.out 2>&1
Also, you might want to check permissions and ownership of your script, as well as setting the PATH explicitly inside of the script.
JP