1821587 Members
3633 Online
109633 Solutions
New Discussion юеВ

sourcing .cshrc

 
SOLVED
Go to solution
vladimir gershman
Occasional Advisor

sourcing .cshrc

Hello,

On HPUX11 node I have a .cshrc file. However, it is not automatically sourced after I login.
What should I do to make it automatic?

Thanks,

Vlad
5 REPLIES 5
Craig Rants
Honored Contributor
Solution

Re: sourcing .cshrc

Try this in your .Xdeftaults file

dtterm*loginShell: True

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Luc Bussieres_1
Trusted Contributor

Re: sourcing .cshrc

Vladimir,

What is the shell of your user? the file named .cshrc is used with the /usr/bin/csh shell. The posix shell (/usr/bin/sh or /sbin/sh) use the file .profile instead..

Luc.
MANOJ SRIVASTAVA
Honored Contributor

Re: sourcing .cshrc

Hi Vladimir

default shell for the user in /etc/passwd should be csh , and the file should be in the home directory and ofcourse readable.


Manoj Srivastava
PIYUSH D. PATEL
Honored Contributor

Re: sourcing .cshrc

Hi,

What shell are you using. Check the /etc/passwd file and if you want to use C shell then put the /usr/bin/csh in passwd file and then it executes .cshrc during login.

Piyush
Shahul
Esteemed Contributor

Re: sourcing .cshrc

Hi

$HOME/.login and $HOME/.cshrc are the startup file for C shell. First .cshrc will read then .login. Check up whether ur .cshrc settings are getting over written by .login or not. Whatever settings U wanted to do, Put it in $HOME/.login file. Then see.
.cshrc will be again read executed in each and every new shells.

Best of luck
Shahul