From owner-freebsd-questions Fri Aug 9 8:11:43 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 69C5237B400 for ; Fri, 9 Aug 2002 08:11:38 -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 B2B2943E3B for ; Fri, 9 Aug 2002 08:11:37 -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 EBB714A25; Fri, 9 Aug 2002 10:11:36 -0500 (CDT) Received: (from hawkeyd@localhost) by sheol.localdomain (8.11.6/8.11.6) id g79FBaI49733; Fri, 9 Aug 2002 10:11:36 -0500 (CDT) (envelope-from hawkeyd) Date: Fri, 9 Aug 2002 10:11:36 -0500 (CDT) Message-Id: <200208091511.g79FBaI49733@sheol.localdomain> Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Reply-To: hawkeyd@visi.com Organization: if (!FIFO) if (!LIFO) break; References: <20020809144240.GA3773_dan.emsphone.com@ns.sol.net> In-Reply-To: From: hawkeyd@visi.com (D J Hawkey Jr) Subject: Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout? X-Original-Newsgroups: sol.lists.freebsd.questions To: syborg@stny.rr.com, freebsd-questions@freebsd.org 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 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 -- Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message