利用crontab自动更新SVN代码

shell.sh
#!/bin/sh source ~/.bash_profile LANG=en_US.UTF-8 cd /opt/web/hzcms/ svn up >> /opt/web/svn.log

contab -e
*/1 * * * * /opt/web/hzcms_shell.sh > /opt/web/svn.log
原文地址:https://www.cnblogs.com/adtuu/p/5338262.html