Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2002 10:11:36 -0500 (CDT)
From:      hawkeyd@visi.com (D J Hawkey Jr)
To:        syborg@stny.rr.com, freebsd-questions@freebsd.org
Subject:   Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout?
Message-ID:  <200208091511.g79FBaI49733@sheol.localdomain>
In-Reply-To: <Pine.LNX.4.44.0208091101480.10214-100000_janeway.vonbek.dhs.org@ns.sol.net>
References:  <20020809144240.GA3773_dan.emsphone.com@ns.sol.net> <Pine.LNX.4.44.0208091101480.10214-100000_janeway.vonbek.dhs.org@ns.sol.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.LNX.4.44.0208091101480.10214-100000_janeway.vonbek.dhs.org@ns.sol.net>,
	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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208091511.g79FBaI49733>