[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cron path problem



On Wed, Mar 24, 2004 at 02:13:09PM +0000, Alexis Huxley wrote:
> Best way to fix path is to put it explicitly in the command you run as
> in:
> 
> 	0 0 * * 1-5	sh -c 'PATH=$PATH:/sbin:/usr/sbin; apt-get update; apt-get install ...'

That's pretty cumbersome. Much easier just to set the variable at the
top of the crontab.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: