On Wed, Mar 09, 2011 at 06:31:38PM +0100, Edward Tomasz Napierała wrote: > > Not sure about the Debian userland, but the standard FreeBSD way > would be to use tty(1): > > $ tty > /dev/ttyv0
Ah, thanks. Does it make sence to use tty <&2 if the standard input is redirected no longer from tty? Yes, it is strange to use stderr as input but this seems to work on Debian with Linux: $ tty <&2 /dev/tty1 $ (tty <&2) </dev/zero /dev/tty1 $ (tty ) </dev/zero not a tty Anton Zinoviev -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110309185505.ga28...@debian.lan