From owner-freebsd-questions Thu Mar 4 7:13:57 1999 Delivered-To: freebsd-questions@freebsd.org Received: from iaces.com (horton.iaces.com [204.147.87.98]) by hub.freebsd.org (Postfix) with ESMTP id 8112014FCA for ; Thu, 4 Mar 1999 07:13:37 -0800 (PST) (envelope-from proot@iaces.com) Received: (from proot@localhost) by iaces.com (8.9.3/8.9.3) id JAA03341; Thu, 4 Mar 1999 09:12:46 -0600 (CST) From: "Paul T. Root" Message-Id: <199903041512.JAA03341@iaces.com> Subject: Re: Starting program on specific virtual console In-Reply-To: from Patrick Seal at "Mar 3, 99 05:17:47 pm" To: patseal@hyperhost.net (Patrick Seal) Date: Thu, 4 Mar 1999 09:12:46 -0600 (CST) Cc: freebsd-questions@FreeBSD.ORG X-Organization: USWEST !nterprise Networking - ACES X-Phone: (612) 664-3385 X-Fax: (612) 664-4779 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 600 Stinson Blvd, Fl 1S X-Address: Minneapolis, MN 55413 X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In a previous message, Patrick Seal said: > jeez man, I knew that! what was I thinking. On a similar note, is there a > way to do the same from a script after boot? Like a script that works > like `man` but runs man on another tty? That way you can read a man page > while using the program without loging in twice. Hmm, seems I used to do something like this. It probably needs a perl script or a simple C program to take control of the tty. Basically, 1) have the getty turned off on a port, say ttyv2. 2) Open the tty for read and write via perl 3) attach that to an exec that runs your man, as standard in and out. Doing a "man bash >/dev/ttyv2" isn't suffient because you still have to be on the tty you typed this on to handle stdin. > > On Wed, 3 Mar 1999, Paul T. Root wrote: > > > In a previous message, Patrick Seal said: > > > On startup, I'd like a program (rc5des) to start on ttyv4 and a few other > > > programs (tail -f) and others. Is there a way to do this other than > > > manually switching consoles? > > > > /etc/ttys > > > > > > -- > > I've seen soaps that leave a better film than that. --The Muppet Movie > > > -- "But don't push it. If you're working late some evening and you're getting tired and starting to make mistakes, don't push it. Go home. You can always come in on the weekend and finish it." --"team meeting" for Skratch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message