Path: utzoo!utstat!news-server.csri.toronto.edu!math.lsa.umich.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!sdd.hp.com!ucsd!nosc!humu!pegasus!pilikia!art From: art@pilikia.pegasus.com (Art Neilson) Newsgroups: news.software.b Subject: Re: C-news vs. ISC 2.2 cron Keywords: cnews newsrun does not work with cron? Message-ID: <1990Sep13.072634.2185@pilikia.pegasus.com> Date: 13 Sep 90 07:26:34 GMT References: <9298@uhccux.uhcc.Hawaii.Edu> Organization: Pilikia, Honolulu Lines: 27 In article <9298@uhccux.uhcc.Hawaii.Edu> todd@uhccux.uhcc.Hawaii.Edu (Todd Ogasawara) writes: >I can't seem to get the C-news newsrun script to run from cron in ISC UNIX >2.2. Has anyone else experienced this problem? > >'newsrun' works fine if I fire it either when logged in as news or when I >manually fire it using 'su -c' as root. I'm running ISC 2.2 and newsrun runs just fine via the news crontab I've set up. Below is my news user crontab: 0,30 6-23 * * * /usr/lib/newsbin/input/newsrun 0 22,4,10,16 * * * /usr/lib/newsbin/maint/newswatch 59 23 * * * /usr/lib/newsbin/maint/newsdaily 0 2 * * * /usr/lib/newsbin/expire/doexpire Of course you must set up your cron.allow/deny files correctly in /usr/lib/cron so news has permission to run cron jobs. Also, I found Cnews needed the setnewsids setuid utility in order for things to go execute properly, I believe this program lives in /usr/lib/news. -rwsr-xr-- 1 root news 51357 Jun 19 22:47 setnewsids I can't think of anything else offhand which was particular to ISC in getting newsrun to fly. Mail me if I can help further! -- Arthur W. Neilson III | ARPA: art@pilikia.pegasus.com Bank of Hawaii Tech Support | UUCP: uunet!ucsd!nosc!pegasus!pilikia!art