Automatically update svn every 10 seconds to update the SVN script at regular intervals

Source: Internet
Author: User
Tags svn

Task:

*/1 * * * *  /opt/adobe/fms/webroot/api/svn.sh

The problem with this command: Only the version number is updated, the actual content is not updated, but running the above shell script directly can be updated.

WORKAROUND: You need to add a username and password to SVN.

As follows:

1, create a new update script svn.sh

#!/bin/bash
/opt/adobe/FMS/webroot/API
Lc_ctype=en_us. UTF-8
/opt/adobe/FMS/webroot/API

Need to add code that line, or sometimes error.

Then CRONTAB-E

*/1 * * * *  /opt/adobe/fms/webroot/api/svn.sh

The above is automatically updated every 1 minutes. Here are every 10s

*//opt/adobe/FMS/webroot/ API/svn.sh
* /(   /opt/adobe/FMS/webroot/API/svn.sh  )
*/(/opt/adobe /FMS/webroot/API/svn.sh)
*/(/opt/adobe/FMS/ Webroot/API/svn.sh)
*/(/opt/adobe /FMS/webroot/API/svn.sh)
*/(/opt/adobe /FMS/webroot/API/svn.sh)
Note Space

Restart Service/sbin/service crond Restart Art Search Reference

Http://stackoverflow.com/questions/10009987/how-to-update-code-using-svn-with-crontab

Http://stackoverflow.com/questions/9619362/running-a-cron-every-30-seconds

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.