Search code examples
cron

Crontab for every Thursday


I'm trying to schedule a restart function every THURSDAY at 11:55pm!

55 23 * * * /usr/html/scheduler/restart.sh > /usr/html/scheduler/file.log

This is what the developer made but it's rescheduling on Monday or Tuesday. Can anyone help?


Solution

  • the last asterisk should be replaced with 4 (day of week - Thursday) as following: 55 23 * * 4.

    u can also use the following tool which makes your life easier when setting up a new crobjob - https://crontab.guru/