Okay, I exported the updated path to include "/usr/local/bin".  Still not
working though.  My script is in /usr/local/Backup/scripts/bkup-daily.
Since I'm referencing the absolute path in /etc/crontab like this:

35      13      *       *       *       root /usr/local
/Backup/scripts/bkup-daily

I don't have to export /usr/local/Backup/scripts, right?

[EMAIL PROTECTED] export
PATH="/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin"

-----Original Message-----
From: Giorgos Keramidas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 03, 2005 1:18 PM
To: Brandon Hinesley
Cc: freebsd-questions@freebsd.org
Subject: Re: Cron Job will not run.

Merely adding it as an assignment is not enough for child
processes of the cron script to 'see' the value.  Make sure
you also 'export' the new PATH:

    PATH='...'
    export PATH

Then the rsync process will use the new PATH.


_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to