From owner-freebsd-questions Fri Aug 9 8:21:55 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 217DC37B400 for ; Fri, 9 Aug 2002 08:21:54 -0700 (PDT) Received: from janeway.vonbek.dhs.org (bgm-24-24-79-198.stny.rr.com [24.24.79.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 836F743E70 for ; Fri, 9 Aug 2002 08:21:53 -0700 (PDT) (envelope-from syborg@stny.rr.com) Received: by janeway.vonbek.dhs.org (Postfix, from userid 507) id 362A54FC8B; Fri, 9 Aug 2002 11:21:27 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by janeway.vonbek.dhs.org (Postfix) with ESMTP id 30E9A4A0E; Fri, 9 Aug 2002 11:21:27 -0400 (EDT) Date: Fri, 9 Aug 2002 11:21:27 -0400 (EDT) From: John Bleichert X-X-Sender: syborg@janeway.vonbek.dhs.org Reply-To: John Bleichert To: D J Hawkey Jr Cc: freebsd-questions@freebsd.org Subject: Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout? In-Reply-To: <200208091511.g79FBaI49733@sheol.localdomain> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 9 Aug 2002, D J Hawkey Jr wrote: > In article , > syborg@stny.rr.com writes: > > On Fri, 9 Aug 2002, Dan Nelson wrote: > > > >> In the last episode (Aug 09), D J Hawkey Jr said: > >> > In $HOME/.bash_profile, I start fetchmail in daemon mode if certain > >> > requirements are met, and in $HOME/.bash_logout, I stop fetchmail > >> > (again, if certain requirements are met). > >> > > >> > I would like to move this functionality to $HOME/.profile and, um, > >> > "what", I don't know, so it also works under sh(1). It's that "what" > >> > that eludes me; is there a sh(1) equivalent to bash(1)'s > >> > $HOME/.bash_logout? > > > > I think /bin/sh uses .login and .profile on the way 'in' and .logout on > > the way out. I put "clear" in .logout of my root account and it works > > fine. > > You sure you were in sh(1) when root? csh(1) is root's default shell. > > Dave > DOH! Yep, I just logged into my FreeBSD box to check that and you're right. I though root used sh. Ah, live and learn. JB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message