[newbie] Weird Cron job problem

2002-12-14 Thread Anthony Abby
I've got a problem with a cron job that just seems so weird to me.  It
has to do with fnews, which I loaded up yesterday...

if I run '/usr/local/bin/fnews -f /root/news/fnewsgroups' from the
terminal everything runs just fine fnews pulls my injects and passes
them to my mailing list.  But if I try to run this all from cron I get
the following error:

-Forwarded Message-

 From: Cron Daemon [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Cron root@mail sh /root/news/cronrun
 Date: 14 Dec 2002 14:30:01 -0500
 
 Connecting to news.cavtel.net at port 119: .. done.
 fnews: //news/rec.arts.comics.dc.universe: cache create error: No such file 
 or directory Disconnecting from news.cavtel.net: done.


/etc/crontab

01 * * * * root /usr/local/bin/fnews -f /root/news/fnewsgroups

I also tried this

01 * * * * root sh /root/news/cronrun

/root/news/cronrun
/usr/local/bin/fnews -f /root/news/fnewsgroups

Any idea why this works from the terminal, but not in cron??

Anthony



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [newbie] Weird Cron job problem

2002-12-14 Thread Stephen Kuhn
On Sun, 2002-12-15 at 07:38, Anthony Abby wrote:
 I've got a problem with a cron job that just seems so weird to me.  It
 has to do with fnews, which I loaded up yesterday...
 
 if I run '/usr/local/bin/fnews -f /root/news/fnewsgroups' from the
 terminal everything runs just fine fnews pulls my injects and passes
 them to my mailing list.  But if I try to run this all from cron I get
 the following error:
 

Have you checked WHO the job is running as? You might want to set the
owner as root.

-- 
Sun Dec 15 10:10:00 EST 2002
 10:10am  up 4 days,  2:32,  6 users,  load average: 0.26, 0.50, 0.52

   .o0 linux user:267497 0o.

|____  | kühn media australia
|   /  \ /| |'-.   | http://kma.0catch.com
|  .\__/ || |   |  | 
|   _ /  `._ \|_|_.-'  | stephen kühn
|  | /  \__.`=._) (_   |  email: [EMAIL PROTECTED]
|  |/ ._/  || |  email: [EMAIL PROTECTED]
|  |'.  `\ | | |icq: 5483808
|  ;/ / | | |
|  smk  ) /_/| |.---.| | mobile: 0410-728-389
|  '  `-`'   | Berkeley, New South Wales, AU

Coralament*Best Grötens*Liebe Grüße*Best Regards*Elkorajn Salutojn

Charm is a way of getting the answer Yes -- without having asked any
clear question.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com