From owner-freebsd-questions Wed Jan 3 21:58:29 2001 From owner-freebsd-questions@FreeBSD.ORG Wed Jan 3 21:58:27 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from hp0.pacbell.net (adsl-64-161-130-82.dsl.snfc21.pacbell.net [64.161.130.82]) by hub.freebsd.org (Postfix) with ESMTP id DD22237B400 for ; Wed, 3 Jan 2001 21:58:26 -0800 (PST) Received: (from lacunza@localhost) by hp0.pacbell.net (8.11.1/8.11.1) id f045wKY56879; Wed, 3 Jan 2001 21:58:20 -0800 (PST) (envelope-from celacunza@flashmail.com) X-Authentication-Warning: hp0.pacbell.net: lacunza set sender to celacunza@flashmail.com using -f From: Christian Lacunza MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14932.4347.994406.935645@hp0.pacbell.net> Date: Wed, 3 Jan 2001 21:58:19 -0800 To: Benjamin Close Cc: Subject: Re: running top at startup X-Mailer: VM 6.89 under Emacs 20.6.1 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi benjamin. you could autologin a user whose shell is top. odd, but it works. -- christian. /etc/ttys: ttyvb "/usr/libexec/getty top" cons25 on secure /etc/gettytab: top:\ :al=topuser:tc=std.9600: > Hi All, > > Where would I put the top command so that it automatically runs at > startup. I normally run the command: > > top -i -s5 < /dev/ttyvb > /dev/ttyvb & > > manually, however attempts to put it in a /usr/local/etc/rc.d/something.sh > script have failed as whilst the script runs, top does not daemonise > itself and hence the controlling shell kills it (check /etc/rc for why). > > Cheers, > -- > * Benjamin Close > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message