*BSD News Article 66010


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!newsfeed.internetmci.com!in1.uu.net!fu-berlin.de!fub!bolzen.in-berlin.de!sirene.in-berlin.de!usenet
From: "Nora E. Etukudo" <nora@sirene.IN-Berlin.DE>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: No su -c
Date: Sat, 13 Apr 1996 21:36:29 +0200
Organization: Frauen-Computer-Netzwerk W.O.M.A.N.
Lines: 20
Message-ID: <3170023D.56543806@sirene.IN-Berlin.DE>
References: <4kogpf$290@falstaf.demon.co.uk>
NNTP-Posting-Host: amazone.in-berlin.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.01 (X11; I; Linux 1.3.57 i486)

Robin Birch wrote:
> 
> Dear All,
> FreeBSD 2.1 doesn't appear to allow su login -c <something>.  I know there
> is a way of haveing the same effect by using echo but I can't remember
> how to do it.  I want to run my news stuff from rc.local and start slurp etc
> off as news from within a script and am a little stymied.
> 
> Ideas please.

I've the following in my 'crontab' and it works:

25  *  *  *  *   echo "send-nntp news.glasnost.de" | su news
17 03  *  *  *   echo "expire -s -v1" | su news

Liebe Gruesse, Nora.
-- 
|  nora@sirene.IN-Berlin.DE     |  SIRENE, Frauen-Computer-Netzwerk WOMAN  |
|  nora@eeubln.IN-Berlin.DE     |     W.omen  O.nly  M.ail  A.nd  N.ews    |  
|  http://sirene.IN-Berlin.DE   |     +4930 8932911, 14400-V42bis (24h)    |