Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Mar 2000 22:18:49 -0500
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        Sam Carleton <scarleton@miltonstreet.com>
Cc:        FreeBSD-Questions@FreeBSD.ORG
Subject:   Re: redirecty to another tty
Message-ID:  <20000307221849.G73820@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <38C55BA1.CC144911@miltonstreet.com>; from scarleton@miltonstreet.com on Tue, Mar 07, 2000 at 02:42:25PM -0500
References:  <38C55BA1.CC144911@miltonstreet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 07, 2000 at 02:42:25PM -0500, Sam Carleton wrote:
> I have been using Linux for a while now.  I discovered that I could do
> this in linux:
> 
> echo hello > /dev/tty9
> 
> And when I went to tty 9 (Atl -F9) , 'hello' was on the screen.  With
> Linux, only F1 thru F6 are TTY's running getty.  Is there some way I can
> redirect the output of a program to the ATL-F10 on my FreeBSD box?

You should be able to do this provided,

A) You enable ttyv9 in /etc/ttys.

2) You have permission to write to it. Permissions on the ttyv's are,

     % ls -l /dev/ttyv?
     crw-------  1 cjc   tty     12,   0 Mar  7 20:44 /dev/ttyv0
     crw-------  1 root  wheel   12,   1 Mar  7 00:36 /dev/ttyv1
     crw-------  1 root  wheel   12,   2 Feb 20 22:09 /dev/ttyv2
     crw-------  1 root  wheel   12,   3 Feb 20 22:09 /dev/ttyv3
     crw-------  1 root  wheel   12,   4 Feb 20 22:09 /dev/ttyv4
     crw-------  1 root  wheel   12,   5 Feb 20 22:09 /dev/ttyv5
     crw-------  1 root  wheel   12,   6 Feb 20 22:09 /dev/ttyv6
     crw-------  1 root  wheel   12,   7 Feb 20 22:09 /dev/ttyv7
     crw-------  1 root  wheel   12,   8 Sep  1  1999 /dev/ttyv8

   Read-write for root only unless you are logged in at one (like I am
   at ttyv0).
-- 
Crist J. Clark                           cjclark@home.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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