Re: console-setup for FreeBSD
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
Reply to: