From owner-freebsd-questions@FreeBSD.ORG Tue Feb 17 14:29:50 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 049FA1065687 for ; Tue, 17 Feb 2009 14:29:50 +0000 (UTC) (envelope-from randy.belk@gmail.com) Received: from mail-gx0-f224.google.com (mail-gx0-f224.google.com [209.85.217.224]) by mx1.freebsd.org (Postfix) with ESMTP id 9D5208FC18 for ; Tue, 17 Feb 2009 14:29:49 +0000 (UTC) (envelope-from randy.belk@gmail.com) Received: by gxk24 with SMTP id 24so5227118gxk.19 for ; Tue, 17 Feb 2009 06:29:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=oqj94oTvw0tyPoiN+371QHKeD/BUpq76Cq6Ty+CGehU=; b=OpMyFaOsue2yef8udK+8VB1va41OqsDv5kDN5YvsUfjU/QQwXx2IV0EpSjBJmkG29/ mt7bqqZWVuAmjqUvslnJB/9mW65/hw6VEBvLbQ6OO4ez6x1M1wX7OEwjAtupIP0ZYCR0 SdvZAaomm5s27uN7R3mo0d6V7cp30N7eicMfc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=TCwBPgCn8Z5OWhQrtOXW0ljT6S/6PdIRDws6Oah2BsfEgHRMCzYSATjdH/Q11kDYBx CVEJdlDxVdC2KEMWxOxWUZ6kn1jlKe2S+rmbqLV1XJx9yJn9qbSsUFKNZmoeH9UMjZeQ YqseRWzL/XhPYAaGl29F4UnbsemcJa5iafp5Y= MIME-Version: 1.0 Received: by 10.100.166.10 with SMTP id o10mr3756441ane.48.1234879332723; Tue, 17 Feb 2009 06:02:12 -0800 (PST) In-Reply-To: <20090217134330.GA53766@mech-cluster238.men.bris.ac.uk> References: <20090217134330.GA53766@mech-cluster238.men.bris.ac.uk> Date: Tue, 17 Feb 2009 08:02:12 -0600 Message-ID: <946140ad0902170602v5d41eab5hf63a489476e663b6@mail.gmail.com> From: Randy Belk To: Anton Shterenlikht Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org Subject: Re: w(5) shows non-existent or lost process? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Feb 2009 14:29:50 -0000 On Tue, Feb 17, 2009 at 7:43 AM, Anton Shterenlikht wrote: > The who (or w, or finger) command shows that I'm still logged into ttyp5, > even though I have rebooted the box many times since. Does this mean > the corresponding entry in /var/run/utmp is wrong and shouldn't be there, or is there > still some process attached to ttyp5? > > ouput of w: > > USER TTY FROM LOGIN@ IDLE WHAT > mexas p4 1:32pm - w > mexas p5 :0. 26Jan09 21days - > > ps ax | grep ttyp5 > shows no process > > Looking at w(1) man page it seems that "-" in WHAT can be an indication > that the process failed but not cleanly and that there could be some forked > sub-process still alive. Does this make sense? Which other commands I can use > to see what's going on? > > many thanks > anton > > -- > Anton Shterenlikht > Room 2.6, Queen's Building > Mech Eng Dept > Bristol University > University Walk, Bristol BS8 1TR, UK > Tel: +44 (0)117 928 8233 > Fax: +44 (0)117 929 4423 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > LSOF is your friend! The port is located in /usr/ports/sysutils/lsof To find out what is using ttyp5 type in "lsof | grep ttyp5" and it should show you the process -- - Amiga, The Computer for the creative Mind! - UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. - People who hate Microsoft Windows use Linux but people who love UNIX use BSD.