Author:North SouthFrom:Linuxsir. orgAbstract:In a Linux operating system, scheduled tasks are usually undertaken by cron. Understanding or understanding cron can help us manage servers more conveniently and save more time. This article also provides
Understand cron concepts
The cron daemon is a small subsystem composed of utilities and configuration files. cron of a certain style can be found in almost all UNIX-like systems. CronComponents include the daemon itself, a set of system-wide
Name: crontab
Permission: All Users
Usage:
Crontab file [-u user]-replace the current crontab with the specified file.
Crontab-[-u user]-replace the current crontab with the standard input.
Crontab-1 [user]-list the current crontab of the
Cron is a daemon that can be used to schedule the execution of repeated tasks based on the combination of time, date, month, and week. Cron assumes that the system continues to run. If the system does not run when a task is scheduled, the task will
In RedHat
Linux Cron configuration file:
/Etc/crontab records environment variables (shell, path, mailto, home) and pre-defined cron tasks (cron. Hourly/daily/weekly/monthly ).
(When the cron task cannot be executed, check the environment variables
Introduction
Cron is a Linux timed execution tool that can run jobs without human intervention.Under Ubuntu Server, Cron is installed and started by default, and if it is not started, it is set and started (chkconfig\sysv-rc-conf).The following can
Use puppet to manage cron. You can add cron jobs to N servers in batches. For example, the script of the timed synchronization time server.1. Architecture192.168.0.200 (redhat) Host Name master.gangpao.com192.168.0.201 (redhat) Host Name
Name: crontab
Use Rights: All users
How to use:
crontab file [-u user]-replaces the current crontab with the specified files.
Crontab-[-u user]-replaces the current crontab with standard input.
crontab-1[user]-lists the user's current crontab.
Summary of linux Cron processes-general Linux technology-Linux programming and kernel information. The following is a detailed description. Author: kissinger_1984
After reading the Cron for two days, I finally thought it was a little clear and
Linux cron and crontab croncrond are located in/etc/rc. d/init. d/crond or/etc/init. d or/etc/rc. d/rc5.d/S90crond, always reference/var/lock/subsys/crond. Cron is a scheduled execution tool in linux (equivalent to cron and crontab cron crond in
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.