From owner-freebsd-questions Fri Nov 15 18:59:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB9AA37B401 for ; Fri, 15 Nov 2002 18:59:26 -0800 (PST) Received: from pooh.ASARian.org (pooh.ASARian.org [216.21.171.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBDA443E42 for ; Fri, 15 Nov 2002 18:59:25 -0800 (PST) (envelope-from fuzzy@pooh.ASARian.org) Received: from localhost (fuzzy@localhost.ASARian.org [127.0.0.1]) by pooh.ASARian.org (8.12.6/8.12.6) with ESMTP id gAG2wmSa087686 for ; Fri, 15 Nov 2002 21:58:48 -0500 (EST) (envelope-from fuzzy@pooh.ASARian.org) Date: Fri, 15 Nov 2002 21:58:48 -0500 (EST) From: Fuzzy To: freebsd-questions@FreeBSD.ORG Subject: howto -- run a non-getty program from /etc/ttys In-Reply-To: <1037364761.97314.4.camel@d80h149.public.uconn.edu> Message-ID: X-No-Archive: Yes Organization: ASARian Inc. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'd like to run /usr/bin/top from /etc/ttys on /dev/ttyv1, (similar to linux's inittab running a non-getty program), and have init rerun it if it exits. I've been told that its possible, and should be something like: ttyv1 "/usr/bin/top" cons25 on secure I also tried ttyv1 "/usr/bin/top > /dev/ttyv1" cons25 on secure (both cause the same error message) but that causes the error message: init: getty repeating too quickly on port /dev/ttyv1, sleeping 30 secs what is the correct syntax for a non-getty program in /etc/ttys? I look at man ttys, but there is no example of a non-getty program there. thanks Fuz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message