Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2002 11:21:27 -0400 (EDT)
From:      John Bleichert <syborg@stny.rr.com>
To:        D J Hawkey Jr <hawkeyd@visi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout?
Message-ID:  <Pine.LNX.4.44.0208091120320.10214-100000@janeway.vonbek.dhs.org>
In-Reply-To: <200208091511.g79FBaI49733@sheol.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 9 Aug 2002, D J Hawkey Jr wrote:
> 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
> 

DOH! Yep, I just logged into my FreeBSD box to check that and you're 
right. I though root used sh. Ah, live and learn.

JB


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?Pine.LNX.4.44.0208091120320.10214-100000>