why my svn backup shell script, works fine in terminal, but fails in crontab?
问题 I have a svn backup script in a redhat linux. let's it called svnbackup.sh It works fine, when I run it in terminal. But when I put it into crontab, it will not bring the svnserve back, even the data is backuped correctly. What's wrong with me??? killall svnserve tar -zcf /svndir /backup/ svnserve -d -r /svndir 回答1: Usually, 'environment' is the problem in a cron job that works when run 'at the terminal' but not when it is run by cron. Most probably, your PATH is not set to include the