From owner-freebsd-questions@FreeBSD.ORG Sun Nov 7 01:25:26 2004 Return-Path: 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 6863A16A4CE for ; Sun, 7 Nov 2004 01:25:26 +0000 (GMT) Received: from outmx006.isp.belgacom.be (outmx006.isp.belgacom.be [195.238.2.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0177C43D2F for ; Sun, 7 Nov 2004 01:25:19 +0000 (GMT) (envelope-from geert.hendrickx@ua.ac.be) Received: from outmx006.isp.belgacom.be (localhost [127.0.0.1]) with ESMTP id iA71PCWO026892 for ; Sun, 7 Nov 2004 02:25:12 +0100 (envelope-from ) Received: from lori.mine.nu ([81.243.16.99]) with SMTP id iA71P27I026830 for ; Sun, 7 Nov 2004 02:25:02 +0100 (envelope-from ) Received: by lori.mine.nu (sSMTP sendmail emulation); Sun, 7 Nov 2004 02:25:11 +0100 From: "Geert Hendrickx" Date: Sun, 7 Nov 2004 02:25:11 +0100 To: freebsd-questions@freebsd.org Message-ID: <20041107012511.GA16346@gemini.lori.mine.nu> References: <20041018185258.GA71347@lori.mine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041018185258.GA71347@lori.mine.nu> User-Agent: Mutt/1.4.2.1i Organization: University of Antwerp X-Accept-Language: nl,en X-PGP-Key: http://lori.mine.nu/gnupgkey.asc X-PGP-Key-ID: 1024D/766C1E92 Subject: Re: arbitrary programs in /etc/ttys [BETTER SOLUTION] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ghen@hmacs.cmi.ua.ac.be List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Nov 2004 01:25:26 -0000 On Mon, Oct 18, 2004 at 08:52:58PM +0200, Geert Hendrickx wrote: > Hello, > > I'm trying to turn an old pc into a serial console. I can perfectly get > a login on the other end of the line with "cu -l cuaa0", but I would > like to have this command started automatically at boot, so the users > don't need to be educated about cu :-). So I put the following in > /etc/ttys: > > ttyv0 "/usr/bin/cu -l cuaa0" vt100 on secure > > But this gives me the following error when restarting init: > > init: getty repeating too quickly on port /dev/ttyv0, sleeping 30 secs > > Apparently cu can not be started directly from /etc/ttys, can it? How > else should I accomplish this? > > GH I'm starting cu from /etc/rc.local now. It does the job, and now users can't even accidentally hit Ctrl-Alt-Fx and be stuck at another virtual terminal. GH -- :wq http://www.openstandaarden.be/