The Linux system is controlled by the cron (Crond) system service. Linux systems have a lot of planned work on them, so this system service is started by default. In addition, because the user can set up scheduled tasks themselves, the Linux system
I always think that timer is a better way to implement the timer. Later, I found out the disadvantage of timer only when I used Linux commands to create scheduled tasks, in timer, it is very likely that your task will be killed as a dead program ....
Basic format:whichMinute: Represents a minute, which can be any integer from 0 to 59.Hour: Represents an hour, which can be any integer from 0 to 23.Day: Represents a date, which can be any integer from 1 to 31.Month: Represents the month, which can
Detailed explanation of the Crontab command for scheduled tasks
Preface
Crontab is Unix and Linux commands used to set periodic execution. It is a very common technology on the Internet. Many tasks are set to run cyclically in crontab. If crontab is
The Timed task (cron job) is used to schedule commands that need to be executed periodically. With it, you can configure certain commands or scripts to run periodically over a set period of time. Cron is one of the most useful tools in Linux or
sudo crontab-e5 * * * * 5 minutes per hour*/5 * * * * * every 5 minutes0 2 * * * Daily 2 o'clock in the morning executionCron is a timed execution tool under Linux that can run a job without human intervention. Since Cron is a built-in service for
Linux crontab command usage details and examples, linuxcrontab
Linux systems are controlled by the cron (crond) System Service. The Linux system has a lot of planned work, so this system service is started by default. In addition, because users can
Crontab is UNIX and Linux used to set the periodic execution of instructions, is the Internet is very common technology, a lot of tasks will be set in the crontab loop execution, if not use crontab, then the task is a resident program, which is
1.1/etc/crontab file
In the/etc directory there is a crontab file, where there are some scheduling programs running on the system. Each user can establish their own scheduling crontab.
Such as:
Copy Code code as follows:
[Root@dave ~
Crontab Concept/Introduction
The crontab command is used to set instructions that are periodically executed. This command reads the instruction from the standard input device and stores it in a "crontab" file for later reading and execution.
Cron
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.