[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: login/logout scripts



On Wed, Feb 13, 2002 at 11:24:35PM -0500, Oleg Goldshmidt wrote:
> Oleg Goldshmidt <ogoldshmidt computer org> writes:
> 
> > Luigi Porco <luigi porco famiglia org> writes:
> > 
> > > hi oleg,
> > > 
> > > have you tried the files ~/.login and ~/.logout? on my system (rh 7.2)
> > > this works in cases a) through c). I verified it by putting "touch test"
> > > into these scripts and logging in. hope this helps
> > 
> > Thanks, but it didn't work for me on RH7.2
> 
> What did work for login, though, was putting
> 
> #!/bin/sh
> 
> if [ -r "$HOME/.login" ]; then
>     . $HOME/.login
> fi
> 
> into /etc/X11/xinit/xinitrc.d/xuser.
> 
> Now if only I could solve the logout problem...
> 
> -- 
As far as I know .lofin and .logout are for the cshrc shell. The bash
shell does not use them. So what you did was to force .login to be
executed on login. However there is a .bash_logout. I would assume that
would do what you wnat to do.
-- 
-------------------------------------------
Aaron Konstam
Computer Science
Trinity University
715 Stadium Dr.
San Antonio, TX 78212-7200

telephone: (210)-999-7484
email:akonstam trinity edu





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]