DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 29th June 2008
godfrank godfrank is offline
Port Guard
 
Join Date: Jun 2008
Posts: 14
Thanked 0 Times in 0 Posts
Default [SOLVED] Cronjob script does not run in cron

Hello mateys!

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.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT. The time now is 10:47 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick