From owner-freebsd-questions Wed Apr 28 8:18:29 1999 Delivered-To: freebsd-questions@freebsd.org Received: from mailhub.scl.ameslab.gov (mailhub.scl.ameslab.gov [147.155.137.127]) by hub.freebsd.org (Postfix) with ESMTP id C0AAA151E0 for ; Wed, 28 Apr 1999 08:18:27 -0700 (PDT) (envelope-from ghelmer@scl.ameslab.gov) Received: from demios.ether.scl.ameslab.gov ([147.155.137.54]) by mailhub.scl.ameslab.gov with esmtp (Exim 1.90 #1) id 10cW5T-0006cW-00; Wed, 28 Apr 1999 10:17:23 -0500 Date: Wed, 28 Apr 1999 10:16:36 -0500 From: Guy Helmer To: pete collins Cc: Roman Jemets , freebsd-questions@FreeBSD.ORG Subject: Re: purge ttys In-Reply-To: <37272226.ADC84F1D@ocsny.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 28 Apr 1999, pete collins wrote: > > As I understand, that means wtmp logout record isn't created and utmp > > record isn't cleared by some reason, one of which may be abnormal shell > > termination. ps should *always* show the real number of processes and > > terminals to which they are connected. Init process should clear > > utmp records eventually, I guess. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > yes these are all abnormal shell terminations over the course of time > i'm not sure if utmp is cleared over time > > because i ran out of ttys yesterday > i killed a bunch of sshd's that were lingering to clear things up a little Maybe you could use sessreg, something like this: /usr/X11R6/bin/sessreg -d -u /var/run/utmp -w /var/log/wtmp -l ttyp1 username Guy Guy Helmer, Ph.D. Candidate, Iowa State University Dept. of Computer Science Research Assistant, Ames Laboratory --- ghelmer@scl.ameslab.gov Research Assistant, Dept. of Computer Science --- ghelmer@cs.iastate.edu http://www.cs.iastate.edu/~ghelmer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message