From owner-freebsd-questions Fri Aug 9 7:42:47 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 2C51837B400 for ; Fri, 9 Aug 2002 07:42:44 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70C5C43E65 for ; Fri, 9 Aug 2002 07:42:43 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.5/8.12.5) id g79Egeg9010303; Fri, 9 Aug 2002 09:42:40 -0500 (CDT) (envelope-from dan) 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? Message-ID: <20020809144240.GA3773@dan.emsphone.com> References: <20020809071825.A48980@sheol.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020809071825.A48980@sheol.localdomain> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.1i 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 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. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message