[SOLVED] Cronjob script does not run in cron
I have a /root/backups.sh script which should be run by a cronjob. What it does is tar many directories, encrypt them with GnuPG and then move the gpg file to a usb stick that was mounted by that very same script.
It works flawlessly if I run the script manually from root. However, it does not seem to be run when I put it in a cronjob although I have an entry in /var/log/cron saying it was run. Also, I don't have any entry in /var/log/messages about the mounting of the usb stick.
I put some debug lines (as in echo "start" > /root/backups.log) and they do not even get executed!
Is there something I should know?
Thanks folks and thank you for building a new and better forum! ;-)
Last edited by godfrank; 30th June 2008 at 12:41 AM.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Cron won't execute a perl script||ivanatora||FreeBSD General||4||17th August 2008 07:53 AM|
|cron newsyslog message||starbuck||FreeBSD General||2||6th August 2008 07:33 PM|
|Cron running but not working||stukov||Other BSD and UNIX/UNIX-like||26||24th July 2008 01:17 PM|
|Please help me automate getmail with cron||cssgalactic||FreeBSD General||2||9th July 2008 10:13 PM|
|Using sendmail in a cron job||erehwon||OpenBSD General||6||15th May 2008 09:03 PM|