I believe 0 0
is the correct specification for midnight (no leading zeros, so in this case no double zero). From man crontab(5):
field allowed values
----- --------------
minute 0-59
hour 0-23
day of month 1-31
month 1-12 (or names, see below)
day of week 0-7 (0 or 7 is Sun, or use names)
If this is in the system crontab (i.e. /etc/crontab
), make sure the field between the time specifications and the command is the user that the command is to be executed as.
Also make sure that the path to your command is fully specified, in the $PATH
, or makes sense relative to $HOME
.
@midnight
. Also, is that a typo or are your actually usinghome/user/script.sh
not/home...
.