Hi,
su password prompt is displayed to *stdout* instead of */dev/tty*.
# su user
$ su root -c date > /tmp/date 2>&1
(nothing displayed)
$ cat /tmp/date
Password:su: Sorry
$ uname -a
FreeBSD freebsd8.my.domain 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov
21 15:48:17 UTC 2009
r...@almeida.cse.bu
Hi,
Cyrille Lefevre wrote:
>
> Hi,
>
> su password prompt is displayed to *stdout* instead of */dev/tty*.
>
> # su user
> $ su root -c date > /tmp/date 2>&1
> (nothing displayed)
> $ cat /tmp/date
> Password:su: Sorry
> $ uname -a
> FreeBSD freebsd8.my.domain 8.0-RELEASE FreeBSD 8.0-RELEASE #0
On Sun, 24 Jan 2010 21:57, glen.j.barber@ wrote:
Hi,
Cyrille Lefevre wrote:
Hi,
su password prompt is displayed to *stdout* instead of */dev/tty*.
# su user
$ su root -c date > /tmp/date 2>&1
(nothing displayed)
$ cat /tmp/date
Password:su: Sorry
$ uname -a
FreeBSD freebsd8.my.domain 8.0-RE
On Sun, 24 Jan 2010 22:48, jhell@ wrote:
On Sun, 24 Jan 2010 21:57, glen.j.barber@ wrote:
Hi,
Cyrille Lefevre wrote:
Hi,
su password prompt is displayed to *stdout* instead of */dev/tty*.
# su user
$ su root -c date > /tmp/date 2>&1
(nothing displayed)
$ cat /tmp/date
Password:su: Sorry
$
Glen Barber a écrit :
Hi,
Cyrille Lefevre wrote:
Hi,
su password prompt is displayed to *stdout* instead of */dev/tty*.
# su user
$ su root -c date > /tmp/date 2>&1
(nothing displayed)
$ cat /tmp/date
Password:su: Sorry
$ uname -a
FreeBSD freebsd8.my.domain 8.0-RELEASE FreeBSD 8.0-RELEASE #
jhell a écrit :
If you mean for the program to appropriately append or overwrite to a
file you should ( su user -c 'date >output 2>&1' ) instead
no, I wanted the log written by the initiator, not the receiver.
Regards,
Cyrille Lefevre
--
mailto:cyrille.lefevre-li...@laposte.net
_
jhell a écrit :
On Sun, 24 Jan 2010 21:57, glen.j.barber@ wrote:
Cyrille Lefevre wrote:
su password prompt is displayed to *stdout* instead of */dev/tty*.
# su user
$ su root -c date > /tmp/date 2>&1
(nothing displayed)
$ cat /tmp/date
Password:su: Sorry
$ uname -a
FreeBSD freebsd8.my.domain
jhell a écrit :
On Sun, 24 Jan 2010 21:57, glen.j.barber@ wrote:
Cyrille Lefevre wrote:
su password prompt is displayed to *stdout* instead of */dev/tty*.
# su user
$ su root -c date > /tmp/date 2>&1
(nothing displayed)
$ cat /tmp/date
Password:su: Sorry
$ uname -a
FreeBSD freebsd8.my.domai