Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!lll-winken.llnl.gov!uwm.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!Germany.EU.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: SU -c switch Date: 23 Nov 1995 22:52:14 GMT Organization: Private BSD site, Dresden Lines: 23 Message-ID: <492tuu$r6g@uriah.heep.sax.de> References: <47fh68$8d@falstaf.demon.co.uk> <47jcdl$msb@uriah.heep.sax.de> <VELVET.95Nov20220008@jazz22.gna.org> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.3 velvet@jazz22.gna.org (Kerjan Herve) writes: > > 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" ..but only if the file "some command string" does contain the actual command. :) Nope, the "echo foo | su bar" is the way to go. su -c went back into FreeBSD-current. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)