Ubuntu – Running script in Crontab every 3 days once

cronUbuntu

I have some Perl scripts which needs to be runned every 3 days once, The following is syntax which I have entered, Can you please let me know, Is this correct or wrong.

30 19    * * */3   root   /var/scripts/svn_backup.pl

Best Answer

It's wrong. The last column is the day of week. You probably want to move */3 to the third column (day of month):

*     *     *     *     *      command to be executed
-     -     -     -     -
|     |     |     |     |
|     |     |     |     +----- day of week (0 - 6) (Sunday=0)
|     |     |     +------- month (1 - 12)
|     |     +--------- day of month (1 - 31)
|     +----------- hour (0 - 23)
+------------- min (0 - 59)
Related Topic