Brief introduction
The crontab command is common in UNIX and unix-based operating systems, and is used to set periodically executed instructions. This command reads the instruction from the standard input device and stores it in a "crontab" file for later reading and execution.
Typically,
Crontab is a convenient way to regularly (cyclically) execute a task on Unix/Linux systems.Program Basic usage:1. crontab-lList the current crontab task2. crontab-dDelete the current crontab task3.
Iii. Linux/UNIX operating command accumulation [gzip, jar, tar, find, crontab]
In Linux/UNIX, users often use text interfaces to set up systems or operating systems. The author is constantly working on these commands, therefore, this article has been specially developed, prepared, and started. This article mainly records some of the operating commands you encount
3. Accumulated Linux/UNIX operation commands (gzip, jar, tar, find, crontab) and gzipcrontab
In Linux/UNIX, users often use text interfaces to set up systems or operating systems. The author is constantly working on these commands, therefore, this article has been specially developed, prepared, and started. This article mainly records some of the operating comman
It is very common to use crontab timers in the usual server management, but there are several issues to be aware of when using them:1, to pay attention to the format of the Crontab 5 * must not be written wrong, the internet to find a picture can be very intuitive to identify the crontab * value problem:650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8
represents minutes 1~59 per minute with * or */1 means 2nd column represents hours 1~ 23 (0 means 0 points) The 3rd column represents the date 1~31 The 4th column represents the month 1~12 5th column identification Number week 0~6 (0 means Sunday) 6th column to run the command example: 0 23 * * 6/ USR/LOCAL/ETC/RC.D/LIGHTTPD Restart The above example shows the restart of Apache every Saturday at 11:00am. * 23-7/1 * * */usr/local/etc/rc.d/lighttpd restart 11 o'clock to 7 a.m., restar
Http://hi.baidu.com/totorol/blog/item/8349643187099d1debc4af8f.html
Crontab command
The crontab command is used to install, delete, or list tables used to drive cron background processes. That is to say, the user puts the command sequence to be executed into the crontab file for execution. Each user can have their own crontab
Crontab commandThe crontab command is used to install, delete, or list tables used to drive cron background processes. That is to say, the user puts the command sequence to be executed into the crontab file for execution. Each user can have their own crontab file. The following describes how to create a
Cron is a Linux scheduled execution tool that can run jobs without human intervention. Since cron is a built-in service in Linux, but it does not automatically get up, you can use the following methods to start and close this service:/Sbin/service crond start // start the service/Sbin/service crond stop // close the service/Sbin/service crond restart // restart the service/Sbin/service crond reload // reload the configuration
You can also enable the service automatically when the system starts
Unix You cannot set up an operation plan using crontabCrontab in the system for example, settings occur in the following phenomena:Workaround:EditCronFile Contents:#EDITOR =vi#export EDITOR ( will beVIset as the default file editor)When you edit a task, the default editor isVI(Note: If you land again, you have to set it again.) However, the statement can be added to the environment variable, so that it can be used directly after each time the machine
Consider the memory footprint. if your single tasks share nothing or little, then it might be better to run them from the operating system as a separate process. if they share a lot of information, it's better to have them as threads within one process. quartz occupies less memory and executes multiple tasks in a single process, while cron is a separate process.
Not quite sure how you cocould handle the clustering incronApproach.QuartzMight be used with terracotta following the scaling out pa
this file is not specified on the command line, the crontab command accepts the commands typed on the standard input (keyboard) and loads them into crontab.-E: Edit the contents of a user's crontab file. If you do not specify a user, edit the current user's crontab file.-L: Displays the contents of a user's
Linux crontab command details, crontab command details
Crontab is a convenient command to execute a task in a scheduled (Cyclic) manner on unix/linux systems. The linux system is controlled by the cron (crond) System Service. The Linux system has a lot of planned work, so this system service is started by default. To u
command line, the crontab command will accept the commands typed on the standard input (keyboard) and load them into crontab.-E: Edits the contents of a user's crontab file. If you do not specify a user, the crontab file for the current user is edited.-L: Displays the contents of a user's
Cron mechanism
Cron allows the system to perform a specified work at a specified time, and we can use the CRONTAB directive to manage the cron mechanism
Crontab parameters
-U: This parameter allows us to edit other people's crontab, if not add this parameter, will open their own crontab
file.9 9 of UNIX and Linux users use VI, and if you do, then you edit the $ home directory. Profile file in which to add such a line:Editor=vi; Export EDITORThen save and exit. You might want to create a file named # (Put your own initials here) echo the date to the console every# 15minutes between 6pm and 6am0,15,30,45 18-06 * * */bin/echo ' date ' >/dev/consoleSave and exit. Make sure that the previous 5 fields are separated by spaces.In the exampl
Linux-crontab and linux-crontab
I have learned a little about crontab before, And I am familiar with it some time ago. I will record it today.
Crontab commands are common in Unix and Unix-like operating systems and are used to set
file for the current user is edited.-L: Displays the contents of a user's crontab file, or displays the contents of the current user's crontab file if no user is specified.-r: Deletes a user's crontab file from the/var/spool/cron directory and, if no user is specified, deletes the current user's crontab file by defaul
cron process determines which editor to use to edit the crontab file. 99% of UNIX and LINUX users use vi. If so, edit the. profile file in the $ HOME directory and add the following line to it:
EDITOR = vi; exportEDITOR
Save and exit. Create a file named
# (Putyourowninitialshere) echothedatetotheconsoleevery
# 15minutesbetween6pmand6am
,-06 ***/bin/echo 'date'>/dev/console
Save and exit. Make sure that t
UNIX and Linux users use VI, and if you do, then you edit the $ home directory. Profile file in which to add such a line:Editor=vi; Export EDITORThen save and exit. You might want to create a file named # (Put your own initials here) echo the date to the console every# 15minutes between 6pm and 6am0,15,30,45 18-06 * * */bin/echo ' date ' >/dev/consoleSave and exit. Make sure that the previous 5 fields are separated by spaces.In the example above, the
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.