From owner-freebsd-questions Thu Aug 28 07:48:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA01700 for questions-outgoing; Thu, 28 Aug 1997 07:48:04 -0700 (PDT) Received: from horton.iaces.com (proot@horton.iaces.com [204.147.87.98]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA01658 for ; Thu, 28 Aug 1997 07:47:59 -0700 (PDT) Received: (from proot@localhost) by horton.iaces.com (8.8.5/8.8.5) id JAA03063; Thu, 28 Aug 1997 09:47:48 -0500 (CDT) From: "Paul T. Root" Message-Id: <199708281447.JAA03063@horton.iaces.com> Subject: Re: logout script To: Jay.Erickson@ibm.net Date: Thu, 28 Aug 1997 09:47:48 -0500 (CDT) Cc: questions@FreeBSD.ORG In-Reply-To: <3405848D.1F38427C@ibm.net> from Jay Erickson at "Aug 28, 97 09:00:45 am" X-Organization: !nterprise Networking Services - ACES X-Phone: (612) 663-1979 X-Fax: (612) 663-8030 X-Page: (800) SKY-PAGE PIN: 537-7270 X-Address: 200 S. 5th St., Suite 1100 X-Address: Minneapolis, MN 55402 X-Mailer: ELM [version 2.4ME+ PL22 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In a previous message, Jay Erickson said: > Is there anyway to modify the exit/logout so it can run another command/script > before it accualy logs the user out. e.g clear the screen first .logout for cshell .bash_logout for bash With sh and ksh, you can set a trap that will invoke when you exit. But I'm a little rusty on doing that. -- ,,, (o o) ------------------------oOO--(_)--OOo-----------------------