linux - How to create a cronjob that runs every 5 minutes from 8:30 AM to 9:30 PM? -


i trying run cron job every 5 minutes 8:30 9:30 pm. i've been searching around web , here came with:

    30,35,40,45,50,55  8 * * * /path/to/whatever.sh >> /var/log/whatever.log 2>&1     */5  9-21 * * * /path/to/whatever.sh >> /var/log/whatever.log 2>&1     5,10,15,20,25,30 22 * * * /path/to/whatever.sh >> /var/log/whatever.log 2>&1 

i have looked @ cron job generators not seem address requirement start/end on half-hour. have better or more concise solution?

30-59/5  8    * * * /path/to/whatever.sh >> /var/log/whatever.log 2>&1 */5      9-20 * * * /path/to/whatever.sh >> /var/log/whatever.log 2>&1 0-30/5   21   * * * /path/to/whatever.sh >> /var/log/whatever.log 2>&1 

should work, , easier read.


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -