Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #172442
| From | "Thomas Schmitt" <scdbackup@gmx.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Crontab doesn't complete a script |
| Date | 2016-09-19 13:40 +0200 |
| Message-ID | <sj55w-4R9-5@gated-at.bofh.it> (permalink) |
| References | <sj4M9-4KI-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Longstanding rsync script no longer excludes Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-17 12:50 +0200
Re: Longstanding rsync script no longer excludes Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> - 2016-09-17 14:30 +0200
Re: Longstanding rsync script no longer excludes - SOLVED Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-17 18:20 +0200
Crontab doesn't complete a script - was Re: Longstanding rsync script no longer excludes Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-19 13:20 +0200
Re: Crontab doesn't complete a script "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-19 13:40 +0200
Re: Crontab doesn't complete a script Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-19 23:20 +0200
Re: Crontab doesn't complete a script - SOLVED Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-20 00:00 +0200
Re: Crontab doesn't complete a script "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-20 00:10 +0200
Re: Crontab doesn't complete a script Clive Menzies <clive@clivemenzies.co.uk> - 2016-09-20 01:10 +0200
csiph-web