Scheduling tasks in Unix
For scheduling tasks in unix systems, we have the cron
tool … We can schedule a task by running
crontab -e
and adding text in the format:
1 2 3 4 5 /full/path/to/script
Where
represents Minutes (0–59)
Hours (0–23)
Days (1–31)
Month (1–12)
Day-of-the-week (1–7)
To run a script at 6:00pm, you’d use:
0 18 * * * /full/path/to/script
Enjoy!