mykeels.com

Scheduling tasks in Unix

For scheduling tasks in unix systems, we have the cron tool … We can schedule a task by running

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

  1. represents Minutes (0–59)

  2. Hours (0–23)

  3. Days (1–31)

  4. Month (1–12)

  5. Day-of-the-week (1–7)

To run a script at 6:00pm, you’d use:

0 18 * * * /full/path/to/script

Enjoy!

Scheduling

Tags