*BSD News Article 25555


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!sgiblab!pacbell.com!att-out!rutgers!twwells!bill
From: bill@twwells.com (T. William Wells)
Newsgroups: comp.os.386bsd.questions
Subject: Re: cron not executing new stuff...
Message-ID: <CIqLp0.y9@twwells.com>
Date: 28 Dec 93 08:45:57 GMT
References: <2fn899$bje@twitch.ns.doe.gov>
Organization: None, Mt. Laurel, NJ
Lines: 20

In article <2fn899$bje@twitch.ns.doe.gov>,
James Martin <martinj@havoc.ns.doe.gov> wrote:
: I've been trying to get cron to execute a command every 10 minutes
: with no success.
: I'm running NetBSD 0.9 on a 486/50 w/8mb RAM. The tab line I'm trying
: to get to run is:
:
: 0,10,20,30,40,50 * * * * /usr/bin/su news -c '/usr/local/news/bin/nntpsend'
:
: which flushes new articles sent to the INN server, which is the box's
: primary function. I've done a "crontab -u root -r root", and rebooted,
: etc... but no luck. cron is still running daily, weekly, monthly stuff, but
: I can't get it to do anything new...
: Is there something I'm missing?

Yes. Su was "improved" to not have a -c option. You have to do
something like echo /usr/local/news/bin/nntpsend | su news
instead. (Which is *not* equivalent but probably would be close
enough for this.) However, you really should run it from the
"news" crontab and not use su.