バッチでコミットする
#!/bin/sh # 毎日の統計をsubversionリポジトリにコミットする date=`date '+%Y%m%d'` cd /home/turbo/log /home/turbo/stat.pl > stat.txt svn ci -m "update $date" svn up
で、cronに仕込むと。
$ crontab -e 0 2 * * * /home/turbo/stat.sh
#!/bin/sh # 毎日の統計をsubversionリポジトリにコミットする date=`date '+%Y%m%d'` cd /home/turbo/log /home/turbo/stat.pl > stat.txt svn ci -m "update $date" svn up
で、cronに仕込むと。
$ crontab -e 0 2 * * * /home/turbo/stat.sh