apt-get upgrade failing due to PATH problems in Cronjob
Colin Watson
cjwatson at canonical.com
Fri Nov 19 11:54:41 UTC 2004
On Fri, Nov 19, 2004 at 11:32:12AM +0000, Colin Watson wrote:
> On Fri, Nov 19, 2004 at 07:12:23PM +0800, Enn Pee wrote:
> > the update is happening succesfully but upgrade is
> > failing telling about path problems. Attached is the
> > log info. Where do I set path to work correctly from
> > cron ? If I run the same job in command line, it works
> > fine
>
> Put that line in root's crontab, not your own (i.e. run 'sudo crontab'),
> and the default path should be OK.
Looking at the code, there's a possibility I'm wrong here. If so, put
this line at the top of the crontab file:
PATH=/usr/sbin:/usr/bin:/sbin:/bin
Cheers,
--
Colin Watson [cjwatson at canonical.com]
More information about the ubuntu-users
mailing list