Re: Crontab doesn't complete a script
Hi,
> The daily backup script works fine when run manually as sudo but doesn't
> complete when run as a root cronjob.
The classic reason for this is difference in environment variables.
I.e. the cron job could die from a non set variable.
The classic remedy would be to set the missing variables inside the
cronjob script.
> /root/uhuru_backup/uhuru.daily.sh
Consider to put some "echo" commands into the script and direct them to
a log file:
log_file=/tmp/uhuru_daily_sh.log
...
echo "Currently at: ..." >>$log_file
...
This should give you an idea what part of the script causes the premature
end.
Have a nice day :)
Thomas
Reply to: