From owner-freebsd-questions Mon Jan 22 1: 7:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from d9168.upc-d.chello.nl (d9168.upc-d.chello.nl [213.46.9.168]) by hub.freebsd.org (Postfix) with ESMTP id 27BEE37B401 for ; Mon, 22 Jan 2001 01:07:11 -0800 (PST) Received: by d9168.upc-d.chello.nl (Postfix, from userid 1001) id 030331D4; Mon, 22 Jan 2001 10:07:09 +0100 (CET) Date: Mon, 22 Jan 2001 10:07:09 +0100 From: Edwin Groothuis To: John Bolster Cc: "Freebsd-Questions@Freebsd. Org" Subject: Re: log myself out Message-ID: <20010122100709.H44350@d9168.upc-d.chello.nl> Mail-Followup-To: Edwin Groothuis , John Bolster , "Freebsd-Questions@Freebsd. Org" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from j.bol@gte.net on Mon, Jan 22, 2001 at 02:43:33AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jan 22, 2001 at 02:43:33AM -0500, John Bolster wrote: > 1. When I log back in and do a 'who' command I see that the earlier sessions > are still running. What is the best way to log them out and close them from > my new session? Is it only in "who" or also in the process-list? If only the first, then it's only an administrative problem with the logfiles, if it's also in the process-list then find the terminal in the process-list and kill these ones: [~] edwin@kludge>w 10:03AM up 4 days, 9:03, 11 users, load averages: 1.04, 1.05, 1.01 USER TTY FROM LOGIN@ IDLE WHAT [..] edwin p5 :0.0 Fri09AM 2days tin -r [..] Terminal p5... [~] edwin@kludge>ps xauw | grep -w p5 | grep -v grep edwin 4821 0.0 0.7 1328 916 p5 Is Fri09AM 0:00.05 -bash (bash) edwin 4823 0.0 8.3 11160 10556 p5 I+ Fri09AM 0:09.10 tin -r [~] edwin@kludge>kill -9 `ps xauw | grep -w p5 | grep -v grep | awk '{ print $2 }'` First try it without the -9, then get the things which refuse to die with a -9. > 2. Sometimes I get disconnected and then can't get back in. I wonder if the > server has crashed, but if I wait, usually, about 15 minutes or less I get > back in again. Once I had to wait until the next day before it recovered. Is > this from some mechanism in FreeBSD that notices when a program has had a > problem and restarts it? This happens with ftpd as well as ssh. Can you still ping it? Can you telnet to port 22? Do you see a prompt then? Edwin -- Edwin Groothuis | Interested in MUDs? Visit Fatal Dimensions: mavetju@chello.nl | http://fataldimensions.nl.eu.org/ ------------------+ telnet://fataldimensions.nl.eu.org:4000 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message