From owner-freebsd-questions Fri Aug 9 6: 7:46 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 8887D37B400 for ; Fri, 9 Aug 2002 06:07:44 -0700 (PDT) Received: from bodb.mc.mpls.visi.com (bodb.mc.mpls.visi.com [208.42.156.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1328F43E3B for ; Fri, 9 Aug 2002 06:07:44 -0700 (PDT) (envelope-from hawkeyd@visi.com) Received: from sheol.localdomain (hawkeyd-fw.dsl.visi.com [208.42.101.193]) by bodb.mc.mpls.visi.com (Postfix) with ESMTP id 610214981 for ; Fri, 9 Aug 2002 08:07:43 -0500 (CDT) Received: (from hawkeyd@localhost) by sheol.localdomain (8.11.6/8.11.6) id g79D7gX49137 for freebsd-questions@freebsd.org; Fri, 9 Aug 2002 08:07:42 -0500 (CDT) (envelope-from hawkeyd) Date: Fri, 9 Aug 2002 08:07:42 -0500 From: D J Hawkey Jr To: questions at FreeBSD Subject: Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout? Message-ID: <20020809080742.A49115@sheol.localdomain> Reply-To: hawkeyd@visi.com References: <20020809071825.A48980@sheol.localdomain> <20020809123641.GC389@freepuppy.bellavista.cz> <20020809074040.A49031@sheol.localdomain> <20020809125305.GE389@freepuppy.bellavista.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020809125305.GE389@freepuppy.bellavista.cz>; from neuhauser@bellavista.cz on Fri, Aug 09, 2002 at 02:53:05PM +0200 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 02:53 PM, Roman Neuhauser wrote: > > > Date: Fri, 9 Aug 2002 07:40:40 -0500 > > From: D J Hawkey Jr > > > > On Aug 09, at 02:36 PM, Roman Neuhauser wrote: > > > > Date: Fri, 9 Aug 2002 07:18:25 -0500 > > > > From: D J Hawkey Jr > > > > > > > > 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? > > > > sh(1)'s. As I wrote, csh(1) has bash(1)'s functionality. > > do you really use sh as your shell?? i mean, it's fine for scripts, > but for interactive use? Nope. I use bash (ksh, on one system). But as bash sources sh's startup files if it doesn't find it's own, I'd like my fragments available to all these shells. Back to the topic: A sh(1)-supported logout script? The man page doesn't mention one. 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