From owner-freebsd-questions Tue Mar 7 19:13:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 2CFB437B522 for ; Tue, 7 Mar 2000 19:13:19 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id WAA74207; Tue, 7 Mar 2000 22:18:49 -0500 (EST) (envelope-from cjc) Date: Tue, 7 Mar 2000 22:18:49 -0500 From: "Crist J. Clark" To: Sam Carleton Cc: FreeBSD-Questions@FreeBSD.ORG Subject: Re: redirecty to another tty Message-ID: <20000307221849.G73820@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: <38C55BA1.CC144911@miltonstreet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <38C55BA1.CC144911@miltonstreet.com>; from scarleton@miltonstreet.com on Tue, Mar 07, 2000 at 02:42:25PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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