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

Re: cron path problem



when you use a shell script this run on the specific shell whith the user 
ambient path because is to diferent  run a script on cron or tty
i put the complet path on all comand than i use!,


##

/sbin/prog1 -d /home/pedro
/bin/prog2 -frp > /home/pedro/filename.txt
##

sorry for my eanglish




Andreas Janssen <andreas.janssen@bigfoot.com> wrote ..
> Hello
> 
> Hans du Plooy (<hansdp@newingtoncs.co.za>) wrote:
> 
> > I have setup a cron job (on woody) to run apt-get update and apt-get
> > install once a week to do security updates.
> > 
> > I get the following:
> > 
> > dpkg: `ldconfig' not found on PATH.
> > dpkg: `start-stop-daemon' not found on PATH.
> > dpkg: `install-info' not found on PATH.
> > dpkg: `update-rc.d' not found on PATH.
> > dpkg: 4 expected program(s) not found on PATH.
> > 
> > I thought that cron would run as user cron, but there's no such user.
> > Who does it run as?
> 
> Normally jobs are run under the user id in the crontab file, or, if the
> job is run from a user crontab, under that user's id.
> 
> > Or how can I set the path that cron has access to? 
> 
> By setting the PATH in your cronjob script.
> 
> best regards
>         Andreas Janssen
> 
> -- 
> Andreas Janssen <andreas.janssen@bigfoot.com>
> PGP-Key-ID: 0xDC801674
> Registered Linux User #267976
> http://www.andreas-janssen.de/debian-tipps.html
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: