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