Complete.Org: Mailing Lists: Archives: discussion: December 1999:
[aclug-L] Re: Executing commands at first login
Home

[aclug-L] Re: Executing commands at first login

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: aclug-L@xxxxxxxxxxxx
Subject: [aclug-L] Re: Executing commands at first login
From: Nate Bargmann <ka0rny@xxxxxxxxxx>
Date: Mon, 20 Dec 1999 23:05:05 -0600
Reply-to: aclug-L@xxxxxxxxxxxx

On Mon, Dec 20, 1999 at 08:59:21PM -0600, Jeff wrote:
> 
> Yes. Bash doesn't know the difference between your first login shell
> and your 4th.  I'd suggest changing it so that your normal xterms
> aren't login shells, or if you don't like that, put some brains into
> .bash_profile to figure out if this is the first login or not.

Thanks Jeff.

I've casually going through Beginning Linux Programming and I am in
the shell programming section so this will be a good exercise.  Should
be easy enough since printenv shows the SHLVL variable.

Thanks for the tip.

- Nate >>

-- 

 Packet   | N0NB @ WF0A.#SCKS.KS.USA.NOAM       | "None can love freedom
 Internet | ka0rny@xxxxxxxxxx                   | heartily, but good
 Location | Wichita, Kansas USA EM17hs          | men; the rest love not
   Wichita area exams; ham radio; Linux info @  | freedom, but license."
             http://www.qsl.net/n0nb/           | -- John Milton

[Prev in Thread] Current Thread [Next in Thread]