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


Reply    
 
Thread Tools Search this Thread Display Modes
    #8  
Old Unix and Linux 4 Weeks Ago
MadeInGermany MadeInGermany is offline Forum Advisor  
Registered User
 
Join Date: May 2012
Last Activity: 22 January 2017, 10:21 AM EST
Location: Simplicity
Posts: 3,367
Thanks: 259
Thanked 1,103 Times in 999 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 (4 Weeks Ago)
Sponsored Links
    #9  
Old Unix and Linux 4 Weeks Ago
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
Reply

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 09:41 AM
cron off by 5 hours mshilling AIX 4 09-23-2011 04:30 PM
cron entry everurs789 UNIX for Dummies Questions & Answers 3 01-24-2011 11:53 AM
User entry in both cron.allow and cron.deny ksvaisakh Solaris 5 12-25-2009 01:39 PM
Cron job for every five minutes and between hours aemunathan Shell Programming and Scripting 1 12-06-2009 08:15 AM



All times are GMT -4. The time now is 12:23 PM.