Unix/Linux Go Back    

Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

How to run cron entry every 5 min during office hours only?


Thread Tools Search this Thread Display Modes
Old Unix and Linux 12-21-2016
MadeInGermany MadeInGermany is offline Forum Staff  
Join Date: May 2012
Last Activity: 22 September 2017, 5:39 PM EDT
Location: Simplicity
Posts: 3,748
Thanks: 306
Thanked 1,257 Times in 1,136 Posts
The /n stepping requires an interval

5-59/10 * * * * command

runs at 5,15,25,35,45,55

5-15/10 * * * * command

runs at 5,15
The Following User Says Thank You to MadeInGermany For This Useful Post:
rbatte1 (12-21-2016)
Sponsored Links
Old Unix and Linux 12-22-2016
crexson crexson is offline
Registered User
Join Date: Dec 2016
Last Activity: 22 December 2016, 7:56 PM EST
Posts: 5
Thanks: 3
Thanked 0 Times in 0 Posts
be remind to re-activate your change on the crontab and verify with "crontab -l" to check on the change line is existing.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to Disabling cron for few hours each day rakeshkumar UNIX for Dummies Questions & Answers 1 10-16-2012 08:41 AM
cron off by 5 hours mshilling AIX 4 09-23-2011 03:30 PM
cron entry everurs789 UNIX for Dummies Questions & Answers 3 01-24-2011 10:53 AM
User entry in both cron.allow and cron.deny ksvaisakh Solaris 5 12-25-2009 12:39 PM
Cron job for every five minutes and between hours aemunathan Shell Programming and Scripting 1 12-06-2009 07:15 AM

All times are GMT -4. The time now is 01:44 AM.