apt-get upgrade failing due to PATH problems in Cronjob
Enn Pee
enn_p at yahoo.com.sg
Fri Nov 19 14:31:03 UTC 2004
Hi,
I had put the cron entry in root using "sudo crontab
-e" command and not in user crontab. That is when I am
getting this error. No cron jobs have been defined in
the default user id.
By the way, will the upgrade command "apt-get upgrade"
in the cronjob overwrites any existing apache or samba
configuration files or spares those important config
files ?
And is it recommended to reboot the machine whenever
kernel related patches are applied ?
Ennpee
>
--- Colin Watson <cjwatson at canonical.com> wrote:
> 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]
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
>
http://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
__________________________________________________
Do You Yahoo!?
Download the latest ringtones, games, and more!
http://sg.mobile.yahoo.com
More information about the ubuntu-users
mailing list