I want to execute cron every day on midnight at time 00:01 Hrs. Is the following cron time correct?
1 0 * * * *
Yes the cron time is correct.
1 0 * * * /mydir/myscript
should be your cron entry.
Each cron entry consists of six fields, in the following order:
minute(s) hour(s) day(s) month(s) weekday(s) command(s)
0-59 0-23 1-31 1-12 0-6
1 0 * * * /mydir/myscript
<-- Correct 1 minute after midnight
1 0 * * * *
<--- Incorrect, Syntax Error
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With