Cron - What is that? Simply think of that as a task scheduler and the tasks assigned will run periodically. In Windows, cron is like a task scheduler. But of course, cron can do more than the windows task scheduler.
Syntax
# ┌───────────── min (0 - 59)
# │ ┌────────────── hour (0 - 23)
# │ │ ┌─────────────── day of month (1 - 31)
# │ │ │ ┌──────────────── month (1 - 12)
# │ │ │ │ ┌───────────────── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names; 7 is Sunday, the same as 0)
# │ │ │ │ │
# │ │ │ │ │
# * * * * * command to execute
Basically, you can see it is like: "min" "hourly": "day of month" "monthly" "day of week" command to execute.
Reference: Cron (Wiki)
- wong chee tat :)
No comments:
Post a Comment