Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!munnari.oz.au!sgiblab!spool.mu.edu!howland.reston.ans.net!pipex!sunic!isgate!veda.is!adam From: adam@veda.is (Adam David) Subject: Re: cron not executing new stuff... References: <2fn899$bje@twitch.ns.doe.gov> <2fnn3oINN5eb@xs4all.hacktic.nl> Organization: Veda Systems, Iceland Date: Tue, 28 Dec 1993 12:06:43 GMT Message-ID: <CIquzM.Gr9@veda.is> Lines: 25 cor@hacktic.nl (Cor Bosman) writes: >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' ^^^^^^^^^^^^^^^^^^^ Could this be the problem? Normal BSD su ignores -c, so you either need a patched su or 'echo /usr/local/news/bin/nntpsend | su news' >Im probably missing something, but why not put that in the news cron? >Thats how I do it anyways. Maybe your cron cant handle entries for >different users? There may be reasons to let root crontab execute commands for other users, for some reason (can't remember why) I had to put some of the C-news cron jobs into the root crontab, su'd to news. They would not work otherwise. However, nntpsend works fine from the news crontab for me. -- adam@veda.is