Scheduling
Scheduling with cron
Cron is used as the de-facto job scheduler for Unix.
Cron stands for "chronograph".
Every user can specify scripts or programs to run at specific time intervals in a text file called "crontab".
Example crontab file
Access/edit crontab file:
crontab -e
cron job definition
* * * * * command to execute
|--<Day of week (0:Sunday to 7)
|--<Month (1 - 12)
|--<Day of month (1 - 31)
|--<Hour (0 - 23)
|--<Minute (0 - 59)
cron shortcuts
Entry | Description | Equivalant |
---|---|---|
@reboot | Run once at starttup | - |
@yearly | Run once a year | 0 0 1 1 * |
@annually | Same as @yearly | 0 0 1 1 * |
@monthly | Run once a month | 0 0 1 * * |
@weekly | Run once a week | 0 0 * * 0 |
@daily | Run once a day | 0 0 * * * |
@midnight | Same as @daily | 0 0 * * * |
@hourly | Run once every hour | 0 * * * * |
Previous:
Windows connectivity
Next:
Web-based system administration using Webmin
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join
We are closing our Disqus commenting system for some maintenanace issues. You may write to us at reach[at]yahoo[dot]com or visit us at Facebook