[NTLUG:Discuss] freebsd pisses me off
Carl Haddick
sysmail at glade.net
Wed Aug 12 10:52:06 CDT 2009
On Wed, Aug 12, 2009 at 08:37:40AM -0500, Jay Urish wrote:
> Guys, I need some help.
>
> I am trying to kick off an rsync job from crontab on a freebsd box.
> My entry in crontab looks like this:
> 30 17 * * 1 root /etc/cronjobs/wednesday.backup
>
>
> /etc/cronjobs/wednesday.backup contains this:
>
> #!/bin/sh
> rsync -vau --stats --delete /mnt/rdl-pdc-D/
> /mnt/daily/rdl-pdc/wednesday/ | /bin/sendEmail -f nas at rdlsupply.com -t
> jurish at rdlsupply.com -u "Wednesday backup" -s mail.rdlsupply.com
> >/dev/null &
>
> I can kick it off from the command line and it works great!
> The complaint? When cron kicks it off, all I get is an empty email and
> rsync dies.
>
>
> I don't get it..
>
> Does anybody have any suggestions?
>
Freebsd isn't so bad, but try 2&>1 instead of >/dev/null so you can see
what's going wrong.
Also, I think the ampersand at the end of the command will thwart the
stdout email you need to diagnose the problem.
If you run wednesday.backup manually, does it run successfully?
Carl
More information about the Discuss
mailing list