Crontab every 2 hours
Solved
Hello,
I would like to run a script from crontab every 2 hours, another every 2 hours and 5 minutes, and finally one more every 2 hours and 10 minutes, and I can’t remember how to do it.
Thanks in advance.
I would like to run a script from crontab every 2 hours, another every 2 hours and 5 minutes, and finally one more every 2 hours and 10 minutes, and I can’t remember how to do it.
Thanks in advance.
2 answers
-
Moderatoroops, you're right ;-) I got the wrong field
0 */2 * * * script.sh
--
106485010510997108 -
ModeratorHello,
every 2 hours means at an interval of 2 hours
if I start at 0 it gives 0 2 4 ....*/2 * * * * script.sh
on the other hand if you want every day at 2:055 2 * * * script.sh
--
106485010510997108