Why doesn't cron complete my script?
Posted
by
brickinthewall
on Ask Ubuntu
See other posts from Ask Ubuntu
or by brickinthewall
Published on 2011-06-22T14:42:02Z
Indexed on
2011/06/23
8:29 UTC
Read the original article
Hit count: 244
I have a backup script (rsync via ssh) which is run by cron (configured in /etc/crontab)
0 2 * * * root /bin/bash --login /opt/aebackup/sshbackup.sh
If I run it as logged in root like following it runs prefectly fine.
root@server:~# /opt/aebackup/sshbackup.sh
If I run it via cron it would just stop after a while (not always on the same task in the script.. it seems pretty random, like the process is killed at some point randomly)
Does anyone have an idea why my cron would do that? thanks for anything... I'm desperate!
© Ask Ubuntu or respective owner