[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [RaQ4] weird cron problem
- Subject: Re: [cobalt-users] [RaQ4] weird cron problem
- From: "Andy Clyde, oxfordmusic.net" <andy.clyde@xxxxxxxxxxxxxxx>
- Date: Thu Jan 9 07:08:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> Hmm, when you run it "by hand" are you running as "root" or as an admin,
or
> some particular user ???
running it as root
$./cron.job
from my /etc/cron.seven directory
>
> Reason I ask, is when you run from "cron" you run as the user "cron" which
> may or may not have the priveleges you need - which would mean it cannot
> "save" the file in the location you specify, therefore the first lynx
command
> will fail (no file created). Am presuming that command works when you do
it
> by hand (?)
>
> You might try creating the cron script for either the user you are running
> as, or for user root to run and see if that works.
>
> 30 7 * * * (TERM=vt100; /usr/bin/lynx -source \
> http://www.domain.com/script1.asp>/dev/null ; \
> gunzip -d stat.csv.gz )
>
sounds reasonable. how do i know what user it is running as?
in my /etc/crontab file i have:
32 7 * * * root run-parts /etc/cron.seven
does this mean i am running it as root or as cron?
andy