Date: Thu, 19 Feb 2004 12:26:33 -0500 From: "Matt Emmerton" <matt@gsicomp.on.ca> To: <darryl@osborne-ind.com>, <freebsd-questions@freebsd.org> Subject: Re: crontab question Message-ID: <000f01c3f70d$855fa7e0$1200a8c0@gsicomp.on.ca> References: <005101c3f6ef$54615f30$0701a8c0@darryl>
next in thread | previous in thread | raw e-mail | index | archive | help
> Greetings, > I am running 5.1-release. I created the file > /var/cron/tabs/root . It is owner root, group wheel. > permissions are -rw------- > > I have the following entry in the file root > > 0 22 2-31 * * /usr/local/bin/rsync -av /dept2/Marketing/ /data/Marketing > 2>&1 /r > oot/rsync.log > > Of course the line above is all on one line. > > Well, this command did not run last night. No /root/rsync.log file was > created. > No email was generated. Zip. > > what did I screw up to prevent cron from running the command ? You did it by hand instead of using the more automated method. Although you got the ownership/permissions correct, I bet you didn't restart the cron daemon (which is required so that it sees the newly created crontab.) You should really use "crontab -e" to edit/create crontab files. It will look after ownership/permissions automatically, as well as kicking the cron daemon. -- Matt Emmreton
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000f01c3f70d$855fa7e0$1200a8c0>