crontab ne lance pas mon script
Bonjour à tous !
Je deviens dingue... c'est pas la 1ere fois que cron refuse de lancer mon script et à chaque fois c'est pareil... impossible de trouver la faille...
mon script :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| ---------------------------------------------------------------------
#!/bin/bash
# script de syncho SVN
cd /mnt/backup2/svn
for i in liste1 liste2
do
echo $i
svnsync sync --username svnsync file://`pwd`/$i
done
touch /mnt/backup2/svn
--------------------------------------------------------------------- |
mon /etc/crontab
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| ---------------------------------------------------------------------
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
#17 * * * * root cd / && run-parts --report /etc/cron.hourly
#25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
#47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
#52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
00 2 * * 2-6 root sh /usr/local/bin/backup_bdd.sh
#05 2 * * 6 root /usr/local/bin/backup-wbp
* * * * * root /usr/local/bin/svnsync.sh
--------------------------------------------------------------------- |
pourtant quand je le lance manuellement il marche parfaitement...
De plus j'ai :
Code:
1 2 3 4 5 6 7 8 9 10
| ---------------------------------------------------------------------
root@backup:~# tail -f /var/log/syslog
Jul 21 12:20:01 backup /USR/SBIN/CRON[19757]: (root) CMD (/usr/local/bin/svnsync.sh)
Jul 21 12:21:01 backup /USR/SBIN/CRON[19778]: (root) CMD (/usr/local/bin/svnsync.sh)
Jul 21 12:22:01 backup /USR/SBIN/CRON[19830]: (root) CMD (/usr/local/bin/svnsync.sh)
Jul 21 12:23:01 backup /USR/SBIN/CRON[19850]: (root) CMD (/usr/local/bin/svnsync.sh)
Jul 21 12:24:01 backup /USR/SBIN/CRON[19870]: (root) CMD (/usr/local/bin/svnsync.sh)
Jul 21 12:25:01 backup /USR/SBIN/CRON[19890]: (root) CMD (/usr/local/bin/svnsync.sh)
--------------------------------------------------------------------- |
...
incompréhensible....
qq pour m'aider ?
:roll: