Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Nov 2005 13:41:10 -0800
From:      "Brandon Hinesley" <brandonh@hotandcold.biz>
To:        "'Giorgos Keramidas'" <keramida@ceid.upatras.gr>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Cron Job will not run.
Message-ID:  <001301c5e0bf$4fef37e0$6800a8c0@BrandonH>
In-Reply-To: <20051103211743.GA26026@flame.pc>

next in thread | previous in thread | raw e-mail | index | archive | help
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@server# export
PATH="/etc:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin"

-----Original Message-----
From: Giorgos Keramidas [mailto:keramida@ceid.upatras.gr] 
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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001301c5e0bf$4fef37e0$6800a8c0>