I have a cron entry that runs every 30 minutes -
*/30 * * * * /home/myuser/myscripts.sh
How to set this up such that it runs exactly at 30 minute intervals but also exactly at (for example)
3:00 PM, 3:30 PM, 4:00 PM, 4:30 PM and so on.
So I'm not only interested in the 30 minute interval but also the time being close to "round figures" on the clock.
So 3 PM is just an example. I want the job to run at times that are "round figures", like "3:00 PM, 3:30 PM, 4:00 PM
" and not "3:15 PM, 3:45 PM, 4:15 PM
"
0,30 3-6 * * * /home/myuser/myscripts.sh
- it will run at 3:00, 3:30, 4:00. 4:30....6:30*/30
does. It doesn't pick a random time and go every 30 minutes from there, it does it on the (half) hour.man 5 crontab
you should get full documentation.