*BSD News Article 25390


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!sol.ctr.columbia.edu!xlink.net!fauern!news.th-darmstadt.de!iti.informatik.th-darmstadt.de!deeken
From: deeken@iti.informatik.th-darmstadt.de (Hannes Deeken)
Newsgroups: comp.os.386bsd.questions
Subject: Re: cron not executing new stuff...
Date: 28 Dec 1993 11:39:59 +0100
Organization: TU Darmstadt, ITI
Lines: 23
Message-ID: <deeken.757075046@iti.informatik.th-darmstadt.de>
References: <2fn899$bje@twitch.ns.doe.gov>
NNTP-Posting-Host: spelunke.iti.informatik.th-darmstadt.de

martinj@havoc.ns.doe.gov (James Martin) writes:

>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?

Yup, two facts :)

First, su(1) on NetBSD 0.9 doesn't support the option '-c <commands>'.
Second, the cron daemon on NetBSD supports crontabs on a per-user base.
Take a look at the command 'crontab'.


Hannes