Return to BSD News archive
Newsgroups: comp.unix.bsd.freebsd.misc Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!in2p3.fr!univ-lyon1.fr!jussieu.fr!univ-paris8.fr!gna.gna.org!jazz22!velvet From: velvet@jazz22.gna.org (Kerjan Herve) Subject: Re: SU -c switch Sender: velvet@jazz22.gna.tfd.com (Kerjan Herve) Lines: 31 Organization: Universite de Paris VIII (via GNA) Message-ID: <VELVET.95Nov20220008@jazz22.gna.org> References: <47fh68$8d@falstaf.demon.co.uk> <47jcdl$msb@uriah.heep.sax.de> In-Reply-To: j@uriah.heep.sax.de's message of 5 Nov 1995 23:04:37 +0100 Date: Mon, 20 Nov 1995 21:00:08 GMT In article <47jcdl$msb@uriah.heep.sax.de> j@uriah.heep.sax.de (J Wunsch) writes: > Robin Birch <robin@falstaf.demon.co.uk> wrote: > > >Many systems, my PDP-11 running 2bsd amongst others, allow me to do something > >like su news -c "some command string". This then allows me to execute the > >command string as news. > > > >I am running FreeBSD 2.0 and this doesn't appear to do this. > > I don't know why this ability has been removed some day. > > You can always do > > echo "some command string" | su news > > In FreeBSD 1.1.5.1, and in FreeBSD-current, su -c does work again. > Or, you could try: su news < "some command string" Herve. -- <--------------------------------------------------> | Kerjan Herve | | 20, rue F.B. Serazin | | 93150 Le Blanc-Mesnil (France) | | Tel: +33 1 48 67 39 04 (Home) | | Universite de Paris VIII (via GNA) | | E-mail: velvet@jazz22.gna.org | <-------------------------------------------------->