Re: Getting ttyx
On Thu, 28 May 1998 forsberg@audiophile.com wrote:
> > What is the best way to get the current console's tty? I know tty does the
> > job, but how do I find the name WITHOUT the /dev/ ? i.e. tty1, tty2, tty3
> > etc? I want to use it with bl in a script.
>
> tty | cut -c 6-
>
> =)
Thanks!
Michael Beattie (mickyb@es.co.nz)
-------------------------------------------------------------------------------
Friends are relatives you make for yourself.
-------------------------------------------------------------------------------
Debian GNU/Linux.... Ooohh You are missing out!
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: