From owner-freebsd-questions Fri Aug 9 8: 6:20 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 891B637B400 for ; Fri, 9 Aug 2002 08:06:18 -0700 (PDT) Received: from bran.mc.mpls.visi.com (bran.mc.mpls.visi.com [208.42.156.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AC9743E84 for ; Fri, 9 Aug 2002 08:06:18 -0700 (PDT) (envelope-from hawkeyd@visi.com) Received: from sheol.localdomain (hawkeyd-fw.dsl.visi.com [208.42.101.193]) by bran.mc.mpls.visi.com (Postfix) with ESMTP id 4C0BC4A43; Fri, 9 Aug 2002 10:06:17 -0500 (CDT) Received: (from hawkeyd@localhost) by sheol.localdomain (8.11.6/8.11.6) id g79F6GP49710; Fri, 9 Aug 2002 10:06:16 -0500 (CDT) (envelope-from hawkeyd) Date: Fri, 9 Aug 2002 10:06:16 -0500 From: D J Hawkey Jr To: Dan Nelson Cc: questions at FreeBSD Subject: Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout? Message-ID: <20020809100616.A49682@sheol.localdomain> Reply-To: hawkeyd@visi.com References: <20020809071825.A48980@sheol.localdomain> <20020809144240.GA3773@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020809144240.GA3773@dan.emsphone.com>; from dnelson@allantgroup.com on Fri, Aug 09, 2002 at 09:42:40AM -0500 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 Aug 09, at 09:42 AM, 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? > > Nope. Why not start/stop fetchmail in your ppp startup/shutdown > scripts instead? Drat. I was hoping I could have a common-to-all-shells approach. I want rather the reverse: I only want to start and stop fetchmail when I start and stop my first local session. I SPOP3 my ISP's mail cluster for inbound, as I don't have an advertised mail server. I only want to automatically retrieve mail when I'm at my desk. I can retrieve mail by other means when I'm elsewhere. > Dan Nelson Dave -- ______________________ ______________________ \__________________ \ D. J. HAWKEY JR. / __________________/ \________________/\ hawkeyd@visi.com /\________________/ http://www.visi.com/~hawkeyd/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message