Set scheduled shell script execution in linux

Source: Internet
Author: User
In linux, you need to set the regular execution of shell scripts: run the shell script vimectcrontab once every 10 minutes and add the following sentence to the last line: * 1 ***** rootshprojectsupdateDSsh & gt; in tmpsvnUpdateCrontab * 1 ***** in linux, you need to set a scheduled shell script execution requirement: run a shell script you have written every ten minutes vim/ect/crontab and add a sentence in the last line: */1 * root sh/projects/updateDS. sh>/tmp/svnUpdateCrontab */1 ***** root svn update/projects/ds_front/trunk/>/tmp/svnUpdateCrontab writes the output content of the executed script in the svnUpdateCrontab file under the tmp Directory, the svnUpdateCrontab file may not exist, when you run the crontab service, create and start the crontab service. Disable/sbin/service crond start/sbin/service crond stop/sbin/service crond restart to view the crond status.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.