Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 1996 10:12:35 +0200 (MET DST)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Cc:        roberte@mep.ruhr-uni-bochum.de (Robert Eckardt)
Subject:   Re: su problem
Message-ID:  <199610070812.KAA13813@uriah.heep.sax.de>
In-Reply-To: <199610062115.XAA01101@ghost.mep.ruhr-uni-bochum.de> from Robert Eckardt at "Oct 6, 96 11:15:15 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
As Robert Eckardt wrote:

> >   su -l hasty -c "<something>"
> 
> It would be nice if this would work.

It works.

> I was searching for that feature since the time I changed
> from SysVr3.2 to FreeBSD. (And it's not in the manpage.)

It's in the man page to your shell.  The -c is passed down to the
shell...

Btw., if you've got an older BSD where it doesn't work, simply use:

	echo "something" | su -l hasty

That's the obvious solution... ;-)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610070812.KAA13813>