Crontab not executing specific script
Hi Guys,
I am running to a weird issue: for some reason when I try to run a crontab script which has these two operations:
#!/bin/sh
DATE=`date +%F`
mysqldump -v --opt --password=65eCom6 udb | bzip2 -9 > /home/backups/udb_mysql_$DATE.sql.bz2
smbclient \\\\vulcan35\\e -A=/root/.smb-credentials \
-c "cd Database_backup; lcd /home/backups; put udb_mysql_$DATE.sql.bz2; exit"
this script only do the sql backup but dont put it in the folder.
but when I reduce this script to the first sql backup only and I use another cron job to put this dump file to the folder it goes through...weird isn't it?
so 1+2 in 1 cronjob don't work but 1 in 1 cronjob and 2 in another cronjob it works perfect. any thoughts?
|