Linux timed Task crontab
- Cron Service
- Cron is a timed execution tool under Linux that can run a job without human intervention.
- Service Crond Start//Startup services
Service Crond stop//Shutdown services
Service Crond restart//Restart services
Service Crond Reload//Reload Configuration
Service Crond Status//view services statuses
- /var/spool/cron/
- This directory is for each user including root crontab task, each task is named after the creator, such as Tom built crontab task corresponding to the file is/var/spool/cron/tom. Generally, a user has only one crontab file at most.
- Crontab-e perform a text editor to set the schedule table
Crontab-r: Delete the current schedule table
Crontab-l: List the current schedule
- /etc/crontab
- This file is responsible for arranging the crontab of maintenance systems and other tasks developed by the system administrator.
- Format
- Format of the crontab file: M H d M D cmd.
M: Minutes (0-59).
H: Hours (0-23).
D: Day (1-31).
M: Month (1-12).
D: Day of the Week (0~6,0 is Sunday).
Ps:
- Crontab set the first few minutes, hours, days, months, weeks
- The command in the shell uses an absolute path. You can which to see the corresponding named path
Linux---> Scheduled tasks