Operating System - HP-UX
1834497 Members
3173 Online
110067 Solutions
New Discussion

HP-UX 10.20 no prompt in terminal window

 
SOLVED
Go to solution
Sheelah Brennan
Occasional Advisor

HP-UX 10.20 no prompt in terminal window

Hi- My workstation was just reconnected to the NFS where my files are, and now when I login to CDE and open a terminal window, all I get is a blinking cursor, with no prompt. It was working fine before. No changes have been made to my .profile.

I attached my .dt/startlog file.

Any ideas what to check/where to look for error messages?
7 REPLIES 7
Niraj Kumar Verma
Trusted Contributor

Re: HP-UX 10.20 no prompt in terminal window

Hey

try

move your .profile to .profile.old

and then try login in

It looks to me there is some problem in your .profile with
stty setings.

-Niraj
Niraj.Verma@philips.com
I H Chen
Advisor

Re: HP-UX 10.20 no prompt in terminal window


Hi all,

I have see the problem on some workstations. I would like to know if somebody has fix it. Thanks!

Y.H.Chen
Yh Chen
Steve Steel
Honored Contributor
Solution

Re: HP-UX 10.20 no prompt in terminal window

Hi

I have seen something similar with the HISTFILE
not working well on a NFS link.


Change .profile or /etc/profile that HISTFILE
is set to a local disc such as

HISTFILE=/tmp/.history$LOGNAME


Regards

Steve Steel

Quote of the moment
-------------------
"We are drowning in information but starved for knowledge."
-- John Naisbitt
If you want truly to understand something, try to change it. (Kurt Lewin)
Armin Feller
Honored Contributor

Re: HP-UX 10.20 no prompt in terminal window

Hi,

I'm in mind with Steve, please create a local HISTFILE.

Please also check the hostnames in /var/statmon/sm.bak and correct all old or incorrect ones.

Regards,
Armin
Ejner Stoevring
New Member

Re: HP-UX 10.20 no prompt in terminal window

Hello Sheelah,

I have experienced the same problem as you with a similar environment.

By implementing the solution that Steve suggests (setting up the HISTFILE variable in the /etc/profile on the NFS-client host) I got my environment to work again.
Try it yourselves !

The problem is related to NFS; my testuser with a home directory on a local FS doesn't exhibit this symptom.

Also on HP-UX 11.0 workstations I'm faced with similar symptoms; my workaround to have the prompt occur has been pressing Ctrl + C (interrupt) once or twice.
The HISTFILE solution mentioned above applies here too.

Regards,
Ejner

Thanks to Steve !! (I would give him 10 points)
Ejner Stoevring
New Member

Re: HP-UX 10.20 no prompt in terminal window

Hello Sheelah,

Sorry, I forgot one important thing (I unfortunately only tested telnet sessions, not the CDE environment). But ...
..to have the solution work in the CDE environment too you can do the following which take into account all users of the NFS-client host:

1. Create a file in /etc/dt/config/Xsession.d called 0100.histfile (or of your choice - the 0100 prefix determines when in the login sequence the script is sourced among others (if any) - adapt it if necessary).

2. Put the following into the file:
#!/usr/bin/ksh
export HISTFILE=/tmp/.history$LOGNAME

3. Make the file executable by all (chmod 555)


I hope this will do it ! (it did for me)

Regards,
Ejner
Sheelah Brennan
Occasional Advisor

Re: HP-UX 10.20 no prompt in terminal window

Thanks to everyone! I edited my .profile to change the HISTFILE file location, and now I'm able to get a command prompt. :)

Cheers
Sheelah