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

Re: [cobalt-users] [RaQ4] weird cron problem



> 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