-mm-dd-hh-mm- SS;2 * * 7/bin/cp-a/etc/fstab/backup/fstab-' date +f '12 o'clock every night, get all lines in the/proc/meminfo file that begin with S or M, append to the/statistics/meminfo.txt file, and precede the daily message with a similar =============== separator line[[email protected] ~]# mkdir-pv/statisticsmkdir:created directory '/statistics ' 0 0 * * */bin/echo-e "===========\n" >>/statistics/meminfo.txt /bin/grep "^[s| M] "/proc/meminfo >>/statistics/meminfo.txtHow to use the Task
; default management of their own;-l:list, list the tasks;-r:remove to remove all tasks;-e:edit, edit, open a default editor for the current shell session to edit the cron task table;Ctrl+d Submitting a taskExample: I write to/etc/crontab1, every Monday to Saturday 3:20 A.M., run the CP command to archive the/etc/directory, storage location is/BACKUPS/ETC-YYYY-MM-DD;3 * * 1-6 root/bin/cp-a/etc//backups/etc-' date +%f ' >/dev/null 2>12, every Sunday 2:30 A.M., run the CP command to backup the/etc
protected] ~]# CRONTAB-L20 3 * * 1-6/bin/cp/etc-rpf/backups/etc-' file\%y-\%m-\%d 'title: Every Sunday wee 2 minutes, run the CP command to backup the/etc/fstab file, storage location is /backup/ Fstab-yyyy-mm-dd-hh-mm-ss[[email protected] ~]# CRONTAB-L30 2 * * 7/bin/cp/etc/fstab/backup/fstab-' file\%y-\%m-\%d-\%h-\%m-\%s 'q : every night , get all lines starting with S or M in the/proc/meminfo file , append to /statistics/ Meminfo.txt file, and the daily message is preceded by a similar =====
notation:1. Specific time: All valid values in the range of valid values for a given point in time;0 5 3 9 *2. Wildcard Time: *, meaning "every ..." means, all valid values at a given point in time;* * * * *3. Discrete time: At a given point in time, use commas to separate;0 8,20 * * 1,3,54. Continuous time: At a given point in time, use a minus sign to separate;0 8 * 1-55. Step time: At a given point in time, use division sign to separate;*/2 * * * **/7 * * * * This method does not implement s
Minute
Minutes, the value range is (0-59)
Hour
Hours, the value range is (0-23)
Day_of_month
Date, value range is (0-31)
Month
month, the value range is (1-12), you can also use jan,feb,mar,apr ... Said
Day_of_week
Week, the value range is (0-6), of which Sunday is 0 or 7, can also be expressed in Sun,mon,tue,wed,thu,fri,sat
Command
The command to execute
Sp
Today a shell script is written, and direct execution is possible.But it's not done with a task plan.The script is as follows:#!/bin/bashtime=0504timea=05Mysqd-f-u root DTS Tangled up half a day, then changed to absolute path on it.The script is as follows:#!/bin/bashtime=0504timea=05/usr/local/mysql/bin/mysqd-f-u root DTS This article is from the "Falling Star" blog, make sure to keep this source http://xiao987334176.blog.51cto.com/2202382/1642022Shell Script Task
Label:Crontab-eNo crontab for root-using an empty oneCrontab:installing New Crontab"/tmp/crontab. Jkmaak ": 1:bad minuteErrors in crontab file, can ' t install.Want to retry the same edit?Enter Y or NWant to retry the same edit? YCrontab:installing New Crontab"/tmp/crontab. Jkmaak ": 1:bad minuteErrors in crontab file, can ' t install.Want to retry the same edit?Enter Y or NWant to retry the same edit? Enter Y or NWant to retry the same edit?Enter Y or NWant to retry the same edit? YCrontab:inst
be executed here should be a standard PL/SQL code. If Program_type is specified earlier as"stored_procedure", the action to be performed here should be a stored procedure defined in Oracle (with a Java stored procedure), if the previous specified Program_type is"executable", the command line information for the external command (with path information) should be specified here; number_of_arguments: Specifies the number of supported parameters and the default value is 0 without parameters. Each p
relevant parameters and commands/P /M /d [{+|-}][{/C for all files to execute the specified command, the command body must be in double quotation marks ("), the default is" cmd/c echo @file ". The "cmd/c del/f @path" is used above to delete the specified file. (Here the @file and @path are variables and will be explained later.) )Here are the parameters that are used in the above:@PATH: Represents the full path of the file. http://blog.csdn.net/babauyang/article/details/25742797Automatically de
Organize
SchedulerThis part is due to the fact that the execution time of automatic statistics collection on the system is abnormal recently, and the execution time is defined in the morning (this is not a reasonable and reliable time ). this item was also sorted out while the configuration was re-modified.
First, let's briefly talk about Oracle 10g schedjob and 10g introduce dbms_schedjob to replace the previous dbms_job. In terms of functions, it provides more powerful functions and more flex
The recent project to use the task scheduling related knowledge, yesterday confidence full to the official website to study, the result was pit a half-dead, I use the latest version of Quartz, the document is said to be compatible with all versions, but the code even compile all the error, helpless had to find information from the internet, Stones finally a little prospect, in this share, by the way Maven Project: Pom.xml references are as follows:
org.quartz-
If you want to add a jobsandbox schedule to a Java program, you can use the
Dispatcher.schedule (
JobName, Poolname, ServiceName, Servicecontext,
StartTime, frequency, interval, count, EndTime, Maxretry
);
Webtools The actual method implementation of the new task scheduling feature, in the following location:
Org.ofbiz.webapp.event.CoreEvents.scheduleService
(HttpServletRequest request, httpservletresponse response)parameter analysis of [Dispatcher.schedule] methodJobName: Scheduled Tas
Tags: Task Scheduler cron Chkconfig Tools SYSTEMD Management Services Unit Introduction Target Introduction34. Linux System Task Scheduler cron, chkconfig Tools, SYSTEMD Management Services, Unit introduction, Target introductionI. Linux system Task Scheduler croncrontab command: Use this command for the operation of the task scheduling feature. Options:-U: Speci
Label:MySQL Event Scheduler Usage Introduction Since MySQL5.1.0, a very distinctive feature has been added – Event Scheduler (Scheduler), which can be used to perform certain tasks on a timed basis and can be seen as a time-based trigger. First, open Event scheduling is turned off by default, enabling the executable SET GLOBAL event_scheduler=1;
SET GLOBAL Ev
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.