Operating System - HP-UX
1833747 Members
2820 Online
110063 Solutions
New Discussion

/etc/csh.login do not work

 
SOLVED
Go to solution
Kong Kian Chay
Regular Advisor

/etc/csh.login do not work

Env : HP-UX 10.20

File /etc/csh.login contains the following statements :-
echo "Testing 1..." > $HOME/temp99
echo "Testing 2..." > /tmp/temp99

When a user (login-shell: /usr/bin/csh) login directly from the CDE panel, the files were NOT created at all. However, if he TELNET in, the files will be created.

How can I get the /etc/csh.login to work when user login directly at CDE Panel ?
8 REPLIES 8
Alex Glennie
Honored Contributor
Solution

Re: /etc/csh.login do not work

try creating $HOME/.Xdefualts :

vi .Xdefaults
dtterm*loginShell: True

or from a dtterm window run
dtterm -ls &

is this new window OK ? => if yes read man dtterm wrt loginshell .... I suspect the problem lies here ;)
Andreas Voss
Honored Contributor

Re: /etc/csh.login do not work

Hi,

try setting the statement

DTSOURCEPROFILE=true

within $HOME/.dtprofile

Regards
Marcel Boon
Trusted Contributor

Re: /etc/csh.login do not work

Hi,

I created a sample user and I can tell you that I have the same problem. I changed the
DTSOURCEPROFILE=true, and the problem still exist. When you login in the CDE enviroment, the /etc/csh.login would not be read. When
you start a console login, the problem is over.
I read a lot of manpages, but they talk about the DTSOURCEPROFILE, but this is not the solution. Let's try some more.

Marcel
See the man pages
Kong Kian Chay
Regular Advisor

Re: /etc/csh.login do not work

Thanks for all the prompt replies so far. I will try them out on 6-Mar-2001 as 5-Mar-2001 is a Public Hol. Will feedback a.s.a.p. Would like to add that "$HOME/.cshrc" is working fine with the ".dtprofile" already set.
Alex Glennie
Honored Contributor

Re: /etc/csh.login do not work

nb if telnet works it smells to me like your .profile is not being read -> hence try forcing the loginshell !
Jacques Simon
Advisor

Re: /etc/csh.login do not work

If it works with telnet, it means that the login process starts csh with -csh as argument, wich leads csh to execute first /etc/csh.login, than $HOME/.cshrc(, than $HOME/.login).
If in the case of CDE login only $HOME/.cshrc is executed, it can mean that the CDE login does not start csh without the -csh argument?!?!
Jacques
Jacques Simon
Advisor

Re: /etc/csh.login do not work

sorry, it sould be:
it can mean that the CDE login starts csh without the -csh argument.
If that is true, is it intentional, or a bug?!?!
Jacques
Kong Kian Chay
Regular Advisor

Re: /etc/csh.login do not work

Commds "dtterm -ls" & "$HOME/.Xdefaults" work fine.

May I know how should I setup the CDE to start with the "-csh" option ?