*BSD News Article 54052


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!newsfeed.internetmci.com!EU.net!Germany.EU.net!zib-berlin.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: SU -c switch
Date: 5 Nov 1995 23:04:37 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 20
Message-ID: <47jcdl$msb@uriah.heep.sax.de>
References: <47fh68$8d@falstaf.demon.co.uk>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

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.
-- 
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. ;-)