Skip to content

Cron

bagIs a job scheduler Software on Linux systems using a special format

Notes

  • Edit cron of a user sudo crontab -e -u USER (-u to edit specific user)
  • Check if the cron expression is correct: crontab guru
  • Use in cooperation with Visudo to execute a task as root

Particular

  • @reboot COMMAND to execute a job at boot

Seconds handling

  • ⚠️ Be careful that some cron expression are in 6 digits, the left one being the seconds
  • If seconds aren't handled, an option is to make several sleeps over the minute sleep 10; /do/something.sh