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?

Solaris


Closed    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 12-21-2016
MadeInGermany MadeInGermany is online now Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 23 July 2017, 2:30 AM EDT
Location: Simplicity
Posts: 3,636
Thanks: 285
Thanked 1,217 Times in 1,100 Posts
The /n stepping requires an interval

Code:
5-59/10 * * * * command

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

Code:
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
    #9  
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
Closed

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 02:49 AM.