From owner-freebsd-questions Tue Feb 14 17:23:51 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id RAA20120 for questions-outgoing; Tue, 14 Feb 1995 17:23:51 -0800 Received: from prosun.first.gmd.de (prosun.first.gmd.de [192.35.150.136]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id RAA20114 for ; Tue, 14 Feb 1995 17:23:44 -0800 Received: from g386bsd.first.gmd.de by prosun.first.gmd.de (4.1/SMI-4.1) id AA15250; Wed, 15 Feb 95 02:23:17 +0100 Received: by g386bsd.first.gmd.de (CAA01813); Wed, 15 Feb 1995 02:25:27 +0100 From: Andreas Schulz Message-Id: <199502150125.CAA01813@g386bsd.first.gmd.de> Subject: Re: HELP To: vlado@ulcc.uni-plovdiv.bg (...) Date: Wed, 15 Feb 1995 02:25:27 +0059 (MET) Cc: questions@FreeBSD.org In-Reply-To: <199502150327.TAA00320@ulcc.uni-plovdiv.bg> from "..." at Feb 14, 95 07:27:01 pm X-Mailer: ELM [version 2.4 PL24] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 853 Sender: questions-owner@FreeBSD.org Precedence: bulk > I have NetBSD 0.9, and I want when CD of my DIAL-IN modem lowers system to kill all process which user has started. Please tell me how to do that. We are the mailing list for FreeBSD, not NetBSD :-). If i understand your question correctly, you are asking how to kill all processes on the logout of a user ? There is no clean way, a user can always intentionally decide to run a process and then logging out. IF you really want to kill all of, you need to write your own script, that checks periodically if there are leftover processes that have no longer a login tty. "ps" and "grep" and a little bit shell programming are a good start for that. ATS ( ats@first.gmd.de or ats@cs.tu-berlin.de ) Andreas Schulz GMD-FIRST 12489 Berlin-Adlershof Rudower Chaussee 5 Gebaeude 13.7 Tel: +49-30-6392-1856/+49-177-2134745 Germany/Europe