4

Can I schedule job in cron format so that it runs every 30 minutes from 6:30 am to 11:30, every day? How?

jonsca
  • 10,218
  • 26
  • 54
  • 62
Przecinek
  • 41
  • 1
  • 2

2 Answers2

4

I think you will need 2 lines to achieve what you need:

30 6-11 * * * /path/to/your/command
0 7-11 * * * /path/to/your/command
Alvin
  • 10,308
  • 8
  • 37
  • 49
0

In addition to Alvin's answer I would suggest to insert this line into your crontab:

*/30 6-11 * * * /path/to/your/command
bmk
  • 13,849
  • 5
  • 37
  • 46