Cron Job will not run.
Brandon Hinesley
brandonh at hotandcold.biz
Thu Nov 3 21:40:14 GMT 2005
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?
root at server# export
PATH="/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin"
-----Original Message-----
From: Giorgos Keramidas [mailto:keramida at ceid.upatras.gr]
Sent: Thursday, November 03, 2005 1:18 PM
To: Brandon Hinesley
Cc: freebsd-questions at 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.
More information about the freebsd-questions
mailing list