From owner-freebsd-questions Fri Aug 9 8: 3:19 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 B792F37B400 for ; Fri, 9 Aug 2002 08:03:16 -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 2F7AD43E65 for ; Fri, 9 Aug 2002 08:03:16 -0700 (PDT) (envelope-from syborg@stny.rr.com) Received: by janeway.vonbek.dhs.org (Postfix, from userid 507) id 3517C4FC8B; Fri, 9 Aug 2002 11:02:51 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by janeway.vonbek.dhs.org (Postfix) with ESMTP id 2FC634A0E; Fri, 9 Aug 2002 11:02:51 -0400 (EDT) Date: Fri, 9 Aug 2002 11:02:51 -0400 (EDT) From: John Bleichert X-X-Sender: syborg@janeway.vonbek.dhs.org Reply-To: John Bleichert To: Dan Nelson Cc: questions at FreeBSD Subject: Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout? In-Reply-To: <20020809144240.GA3773@dan.emsphone.com> 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, Dan Nelson wrote: > Date: Fri, 9 Aug 2002 09:42:40 -0500 > From: Dan Nelson > To: D J Hawkey Jr > Cc: questions at FreeBSD > Subject: Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout? > > 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? > > Nope. Why not start/stop fetchmail in your ppp startup/shutdown > scripts instead? > > > It looks as though csh(1) parallels bash(1)'s functionality, but with > > different dot files. > > > > Please mail me directly, as I'm not subscribed to this list. Thanks, > > That's standard procedure. > > -- 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. /* * John Bleichert * syborg@stny.rr.com * http://vonbek.dhs.org/latest.jpg */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message