Script won't run in crontab
Hi all,
I say you in advance that I'm linux newbie
I've to run a simple script in a crontab job : this work via shell but won't start via crontab job (it seems that doesn't start). I've tried to make a log (adding a > /home/errlog.log) but this is empty.
OS = ubuntu server 8.10
Here's my script sync_vm.sh
---------------------------------
cd /usr/bin/
./vmware-mount /var/lib/vmware/Virtual\ Machines/server/server.vmdk /mnt/server/
mount.cifs //server/c$ /mnt/sv_c ro -o username=user%pwd
rsync -a -v --delete /mnt/sv_c/Inetpub/wwwroot/folder /mnt/server/Inetpub/wwwroot/
umount.cifs /mnt/sv_c
./vmware-mount -d /mnt/server/
----------------------------------
My script is in /root/ folder
I've added a line in crontab -e
0 13 * * * /root/sync_vm.sh > /dev/null
Anyone of you could you help me to find issue...?
In other forum someone says to use absolute path in crontab call
So I change it in
0 13 * * * /bin/sh /root/sync_vm.sh > /dev/null
But nothing change
Someone say me that crontab environment run separately from user shell environment
I become crazy....
Is there others way to run this script ??????
Thanks to all
|