Linux Command Line Operation Plan Task-Linux general technology-Linux programming and kernel information. The following is a detailed description. Two types:
I. at ----- |-> similarities: A running task is similar to a printing process. You can put the task in the/var/spool/at directory. | specify the running time. Batch --- | difference: batch runs only when the system is idle. at runs at a specified time.
2. crontab --- |-> similar to the daemon process, which provides the timer function to allow users to execute predefined commands or programs at specific times. Cyclically run. anacron --- | cron has two configuration files: the/etc/crontab global configuration file and the user-level configuration file generated by the crontab command. By default, all users can access cron. difference: when your Linux server does not run throughout the day, this anacron will help you execute the work that has not been executed within the time set by "crontab.
At:
# At time
Xx
Xxx
Xxxxx
CTRL + D end input.
# Atq: view the AT task.
# Atrm number: delete an AT task,
Example:
# At 2: 05 tomorrow
At>/root/httpdbackup. sh>/home/backup/
At> Ctrl + D
# Crontab-e User name: If there is no user name, it indicates the current user.
# Crontab [-u user] file
|-> View
|-> Edit
Crontab [-u user] [-l |-r |-e] [-I]
|-> Delete |-> confirm before deletion
|-> Identity of the user executing crontab
Format:
* *** Shell commands or scripts
Parameter explanation: (from left to right)
Minutes (0-59)
Hour (0-23)
Date (1-31)
Month (1-12)
Day of the week (0-7, where 0 and 7 are all Sunday tables)
Note:
Users in/etc/cron. deny cannot use the crontab command.
Users in/etc/cron. allow can use the crontab command. The permission is higher than cron. deny.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service