利用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

 

posted @ 2016-03-30 18:19  Adtuu  阅读(678)  评论(1编辑  收藏  举报