Colin Watson <[EMAIL PROTECTED]> writes:
> On Wed, Mar 24, 2004 at 02:13:09PM +, 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 ...'
>
> Tha
Hans du Plooy <[EMAIL PROTECTED]> writes:
> I thought that cron would run as user cron, but there's no such user. Who
> does it run as? Or how can I set the path that cron has access to?
If you're talking /etc/crontab, then it is run as root unless you tell
it to do otherwise. If it's your ~/
On Wed, Mar 24, 2004 at 02:13:09PM +, 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
> Hi guys,
>
> 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: `updat
On Wednesday 24 March 2004 13:10, Andreas Janssen wrote:
> 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.
It's system wide with no user-id in the crontab file (will check that out).
> By setting the PATH in your cronj
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
And
Hello
Hans du Plooy (<[EMAIL PROTECTED]>) 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-
Hans du Plooy 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.
Just do
apt-get install cron-apt
(The version in testing should work fine on woody as well, and has a few
more features, but the one in woody does what you
Hi guys,
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 o
9 matches
Mail list logo