Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 461  / 2 Years ago, fri, february 18, 2022, 1:30:53

I'm using ubuntu 12.04 and I want to execute a script every 5 hours .
I setup cron with crontab -e and putted



* */5 * * * sh /home/cron_script.sh


The script is executed every minute.



Thanks.


More From » cron

 Answers
0

The first * needs to be a 0 or whatever minute of the hour you want the script to run...eg 30 would mean script will run at 0030,0530, 1030, etc.


[#36757] Saturday, February 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ularousand

Total Points: 380
Total Questions: 109
Total Answers: 101

Location: England
Member since Tue, Sep 8, 2020
4 Years ago
;