This article is generated in the writing of personal site backup script when you see, stay for referenceProblem scenario: Because my company has too many servers, the daily backup log files that I've created accumulate over the long haul. And do not need to keep so much, according to company requirements only need to retain one weeks. 1. What is the way to automatically delete the *.log files that were backed up 7 days ago? 2. Too many servers, it is not possible to create one by one manually, t
at[option]...timetime: hh:mm[yyyy-mm-dd]noon,midnight,teatime noon, at night, Tea time (four o'clock in the afternoon) tomorrow tomorrow now+#unit:minutes,hours, days,orweeksat jobs have queues, denoted by a single letter, and by default use the A queue; common options: -l: View Job queue, equivalent to atq -f/path/from/somefile: Reads the job task from the specified file without having to interactively e
Perform one task at a time in the future: at, BatchTo run a task periodically: crone-Mail Service:Smtp:simple Mail Transmission protocol for mail deliveryPop3:post Office ProtocolImap4:internet Mail Access ProtocolMailx-send and receive Internet mailMua:mail User AgentMAILX [-S ' SUBJECT '] username[@hostname]The message body is generated:(1) give directly, Ctrl+d;(2) Input redirection(3) through the pipeli
choose, is hourly, or every minute, you can choose to modify the time , and then determine.Again to configure the need to perform the "action" is to select the program or BAT file, it is important that the configuration is to select the bat file, in the "Start from (optional)" Here must fill in the corresponding execution program or BAT file directory, otherwi
be read into the cache ).
Remember that the CPU cache is a local (On-Chip) memory that provides faster access than the system memory. If a task is executed on a CPU, data related to the task will be stored in the local cache of the CPU, which is called hot. If there is no data in the local cache of the CPU for a task, the cache is called cold.
Unfortunately, kee
-M if the task is completed, send the message to the intended user this is the default option-m do not send mail to scheduled users-F Read command from File-t specifies execution time [CCYY]MMDDHHMM[.SS] default format is HH:MM[YYYY-MM-DD]Now there are two tasks waiting to be executed at-l can also view scheduled tasksThere's only one mission left.-C View the specific contents of the command-R/D ATRM Delete
First, Windows Server 2008 differs greatly from the other server operating systems and Windows Server 2003, where the name of the scheduled task is "Task Scheduler" not in Control Panel, but in "Administrative Tools".Because the server needs to do some tasks, timed execution, their own program bar, trouble, so the use of bat to replace the operation, a lot of peo
Linux Task Scheduler:
One-time task execution (at, batch);
At: A timed task that specifies a time to perform a task that can only be performed once.
At the mode of use;
Interactive: L
The Linux task plan is divided into two types: one-time Task Scheduler and a recurring task plan implementation tool primarily at and crontab the use of the Task Scheduler tool is described in detail below.1. At command one-time m
file line buffer, that is, when a buffer receives a newline character, it can read and write to the file._IONBF file does not buffer, ignoring the value of buf,size, directly read and write files, no longer through the file buffer bufferThe code is written in imitation of a blog, here to express our thanks: Terence-ya
There is a mail service function inside the Linux system/var/spool/mailCentOS6, 7 The default is to open the mail service-s Specifies the subject of the message-A file_name adding attachments-R Specify the message source-U Specify the purpose of the messageHello World is the subject of the message this message is sent to root. EoT above, that is, on behalf of the message content input completed.Mail is querying your own message 1 means you need to see the first messageQ is to exit the programInf
deferred when the system load is too high.The usage of batch is similar to at, andbatch has no parameters but the task executes when the system is idle#使用batch建立空任务 [[email protected] ~]# batchat> at> at> at> Crontab: Recurring Task ScheduleThe execution of the crontab command relies on the Crond serviceThe same cront
to use are:
Create your task viaschtasks.exe /create /tn MyTask ...
Export your task to XML viaschtasks.exe /query /xml /tn MyTask > MyTask.xml
Update this XML via XSLT or a search/replace
Re-import (overwriting the old task) viaschtasks.exe /create /tn MyTask /xml MyTask.xml /f
::Modify Scheduled
Task Scheduler
Perform a task at a time in a future point At,batch To perform a task periodically: crontab The at and Crontab implementations are sent to the system by mail Service At present the system each user has the mail address, the mail service will launch the p
that it is working correctlyIn the CENTOS7:]# systemctl Status {atd.service|crond.service}The result is active (running), which indicates that it is working properlyThe results of all process scheduling are sent to the user's mailbox in an e-mail message.Local Email service:Smtp:simple Mail Transfer Protocol, Simple Mail Transfer Protocol, TCP/25Pop3:post-office Protocol version 3, Post Office Protocol, third edition, tcp/110Imap4:internet Mail Access Protocol version 4, Internet Mail Protocol
First, summarize the task plan on Linux system at, crontab detailed use method1. Planning Task DescriptionPerform a task at a time in the next point: At,batch;Perform a task periodically: crontab;2. e-Mail ServiceScheduled tasks send results to users who perform tasks by def
be loaded any data can be serialized, access is very convenient. It is important to note that both jobdetail and trigger can be associated with each other jobdatamap. Jobdatamap In addition to the above code can be obtained, but also in the Yourjob implementation class, add the corresponding setter method gets.
5, Trigger used to tell the quartz scheduler when the execution, commonly used triggers have 2 kinds: simpletrigger (like a timer), Cront
# Include # Include # Include # Include # Include # Include # Include
//////////////////////////////////////// //////////////////////////////////
// Function name: deletetask
// Function: deletes a specified task scheduler.
// Parameter description: lpcwsztaskname: name of the task plan to be deleted
//////////////////////////////////////// /////////////////////
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.