Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2002 11:02:51 -0400 (EDT)
From:      John Bleichert <syborg@stny.rr.com>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        questions at FreeBSD <freebsd-questions@FreeBSD.ORG>
Subject:   Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout?
Message-ID:  <Pine.LNX.4.44.0208091101480.10214-100000@janeway.vonbek.dhs.org>
In-Reply-To: <20020809144240.GA3773@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 9 Aug 2002, Dan Nelson wrote:

> Date: Fri, 9 Aug 2002 09:42:40 -0500
> From: Dan Nelson <dnelson@allantgroup.com>
> To: D J Hawkey Jr <hawkeyd@visi.com>
> Cc: questions at FreeBSD <freebsd-questions@FreeBSD.ORG>
> Subject: Re: sh(1) equivalent to bash(1)'s $HOME/.bash_logout?
> 
> 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?  
>  
> > It looks as though csh(1) parallels bash(1)'s functionality, but with
> > different dot files.
> > 
> > Please mail me directly, as I'm not subscribed to this list. Thanks,
> 
> That's standard procedure.
> 
> -- 

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.

/* 
 * John Bleichert
 * syborg@stny.rr.com
 * http://vonbek.dhs.org/latest.jpg
 */


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.0208091101480.10214-100000>