Aysad Kozanoglu - Mimarist

Server Howtos & Tutorials

crontab

04 Februar, 2017 | Server Anleitungen

 

This runs the script every minute of 2am (02:00, 02:01, 02:02 and so on):

* 2 * * *

While This runs the script at 02:13am (of each day of each month)

13 2 * * *

* * * * * command to execute
┬ ┬ ┬ ┬ ┬
│ │ │ │ │
│ │ │ │ │
│ │ │ │ └───── day of week (0 - 7) (0 to 6 are Sunday to Saturday, 7 is Sunday again)
│ │ │ └────────── month (1 - 12)
│ │ └─────────────── day of month (1 - 31)
│ └──────────────────── hour (0 - 23)
└───────────────────────── min (0 - 59)