The cron service is installed by default on ubuntu12.04 server.
You can use the crontab-e command to bring up the default editor in your system for editing.
For the crontab command format, refer to the following article, which is very good:
Http://blog.csdn.net/love__coder/article/details/6890997
The Ubuntu site also provides the following manuals:
Http://wiki.ubuntu.org.cn/CronHowto
My requirement is that the nginx service has been installed in the
success or failure. We'll also need to deal with the situation where the cron task is executed at the specified call time, and we'll do the same if the Cron service fails after the load task is executed, which we'll discuss in the next section.Another important feature of the master node is that it must immediately stop interacting with the datacenter scheduling system, for whatever reason the master loses
Use cron in Ubuntu 14.04 for job automation, 14.04 cronChszs, author of cron in Ubuntu 14.04, is copyrighted and cannot be reproduced without consent. Blogger home: http://blog.csdn.net/chszs
Cron is one of the most useful tools in Linux. cron jobs are scheduled to run when the specified time is reached.The most common
Detailed defense against cron attacks (times your cron Security)A few days ago, my friend said that his website consumed a lot of yundou, and then read the logs and found that most of them were cron. php. Then it is not accessed by an intranet IP address, nor has monitoring been added. It is estimated that it is malici
From: http://hi.baidu.com/wjx_5893/blog/item/1c28057fb2d93f062a388a67.html
The quartz cron expression supports whether to allow special characters for seven domain names
Seconds are 0-59 ,-*/
0-59 ,-*/
0-23 ,-*/
The day is 1-31 ,-*? /L W C
Month is 1-12 or JAN-DEC ,-*/
The Week is 1-7 or sun-Sat ,-*? /L c #
Yearly blank or 1970-2099 ,-*/
The names of months and weeks are case-insensitive. Fri and Fri are the same.
Fields are separated by spaces.
**
This is a creation in
Article, where the information may have evolved or changed.
Life goes on and on go Go go!!!
Today, we share with you the task of doing timed tasks in Golang, mainly about the use of open source libraries on two GitHub.
Linux under Crontab
The crontab command is commonly used in Unix-and Unix-like operating systems to set instructions that are executed periodically. The command reads the instruction from the standard input device and stores it in a "crontab" file for later r
Modify the start time of cron. daily and cron. daily.
To modify the file/etc/sysconfig/cron, the content to be modified is as follows:
## Type: string## Default: ""## At which time cron.daily should start. Default is 15 minutes after booting# the system. Example setting would be "14:00".# Due to the fact that
When a task is automatically compiled on the recently configured server, after each cron task is executed, the msmtp log file in the home root directory contains a failed log, the receiver is the user name used to execute the cron task. In fact, the cron task is output to a large number of standard devices. Therefore, Sendmail of the system wants to send the outp
Scheduled task cron command and cron command
A beginner in linux, because the project needs to learn the linux operating system now.
A scheduled task is required for the project to access a url every hour. You can learn how to use the crontab command by referring to many blogs.
Crontab-u root-l # query the currently executed cron command
Crontab-u root-e # ed
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 some simple and clear examples to facilitate new users;
Directory
2.1.1 installation of RPM package management systems such
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 configuration files, a set of configuration files for specific users, and a utility for adding, modifying, and deleting use
Most of the content below is translated according to Cron Help Guide, and some parts are added by yourself.
The full text is as follows:
Cron comes from the Greek word chronos (meaning "time"). It is the next program in linux to automatically execute specified tasks. For example, you can use cron to automatically create backups of certain files or folders during
date
# A.m. of July
0 4 1 jan * date
Example
$ Crontab-l list the current crontab of a user.
/Usr/lib/cron. allow indicates who can use the crontab command. If it is an empty file, it indicates that no user can schedule a job. If this file does not exist and another file/usr/lib/cron. deny exists, the crontab command can be used only by users not included in this file. If it is an empty file, it indicates
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 not be executed. To use the cron service, you must install the vixie-cronRPM package and run the crond service. To d
Cron is one of the most useful tools in Linux. cron jobs are scheduled to run when the specified time is reached. The most common automated system management and maintenance work, such as the daily scheduled backup notification or the scheduled/tmp/directory cleaning notification. Many Web applications also need to execute scheduled jobs. This article describes how Cron
custom for user
D /mnt/westos 777 root root 10s |
| | | Directory for temporary Files directory directory directory where the user owns the group to clean up the files in the directory time interval
systemd-tmpfiles–create/usr/lib/tmpfiles.d/* # #执行管理临时文件配置文件systemd-tmpfiles–clean/usr/lib/tmpfiles.d/* # #清理超过配置文件设定时间的文件
Reopen a window for monitoring: Watch-n 1 ls-lr/mnt/After the original window touch/mnt/file1,10s ex
Use cron in Ubuntu14.04 to automate jobsUse cron in Ubuntu 14.04 to automate jobs
Cron is one of the most useful tools in Linux. cron jobs are scheduled to run when the specified time is reached.The most common automated system management and maintenance work, such as the daily scheduled backup notification or the sche
Use Cron in Ubuntu 14.04 to automate jobs
Cron is one of the most useful tools in Linux. cron jobs are scheduled to run when the specified time is reached.The most common automated system management and maintenance work, such as the daily scheduled backup notification or the scheduled/tmp/directory cleaning notification. Many Web applications also need to execute
automate job using cron in Ubuntu 14.04
Author: Chszs, All rights reserved, without the consent, may not reprint. Bo main home: Http://blog.csdn.net/chszs
Cron is one of the most useful tools in the Linux system, and the cron job is the job that is scheduled to execute at the specified time.The most common Automated system management and automated maintenance w
using cron to monitor background process statushttp://blog.csdn.net/dyx810601/article/details/729677581.Use cron to monitor the status of the background process and automatically pull the process out if the process dies or the server restarts.Purpose: The server program under Linux will be dropped for various reasons, it will affect the user's use, here provides a simple process
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.