Computing.Net > Forums > Linux > .login file

.login file

Reply to Message Icon

Original Message
Name: soothsayer
Date: January 25, 2005 at 06:08:31 Pacific
Subject: .login file
OS: Mandrake 10
CPU/Ram: 512
Comment:

Hi, i changed the login shell from bash to tcsh.
The .login file was not there so i created and edited it in order to set some environment variable. Here is all i got in .login:

setenv CVS_SHR ssh

But after logging out and in, i still couldn't find that variable. Why is that ? tcsh shell reads .login file when user's logging in right ?

TuanAnh


Report Offensive Message For Removal


Response Number 1
Name: cdac1000
Date: January 26, 2005 at 06:14:02 Pacific
Subject: .login file
Reply: (edit)

shouldn't you be using .cshrc instead of .login ?


Report Offensive Follow Up For Removal

Response Number 2
Name: soothsayer
Date: January 27, 2005 at 02:04:14 Pacific
Subject: .login file
Reply: (edit)

Yeah, it works in .cshrc, but im wondering
why it doesn't work in .login. Doesn't the
shell read .login when it loggin in as
well ?


Report Offensive Follow Up For Removal

Response Number 3
Name: Shadowlight
Date: January 27, 2005 at 15:52:36 Pacific
Subject: .login file
Reply: (edit)

You can find out by looking in the /etc/profile file.
There you can see which logonfile is used in your homedir.



Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: .login file

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge