1833261 Members
3064 Online
110051 Solutions
New Discussion

Re: sheel in 'jam'

 
Lorenzo Facello
Valued Contributor

sheel in 'jam'

(HP-UX 11.11)
When I log to my server I lunch the top command, then when I type ctrl+c my prompt 'jam'. Infact if I try to type any commands but nothing word appear, and when I type (enter) the prompt appear on the right, so I have to close my sheel.
Can you suggest something?
Thanks
6 REPLIES 6
Sridhar Bhaskarla
Honored Contributor

Re: sheel in 'jam'

Hi,

Type "q" to quit.

Depending your "stty" setup, ctrl-c may be mapping to something else.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jeff Schussele
Honored Contributor

Re: sheel in 'jam'

Hi Lorenzo,

Sounds like an incorrect stty setting.
Before you run top - enter
stty -a
and note the values of
intr
quit
erase
kill
stop
start
.
.
.
etc

If, for example. intr does NOT = ^C and something else does - that would explain it.
Also make sure that $TERM *actually* matches the terminal type you're using.

Also as a side note - q (by itself) *should* end a top session.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Steven E. Protter
Exalted Contributor

Re: sheel in 'jam'

It could be stty as noted above, Here is a standard setup for that.

[5000]# stty -a
speed 9600 baud; line = 0;
rows = 24; columns = 80
min = 4; time = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U
eof = ^D; eol = ^@; eol2 ; swtch
stop = ^S; start = ^Q; susp = ^Z; dsusp
werase ; lnext
parenb -parodd cs7 -cstopb hupcl -cread -clocal -loblk -crts
-ignbrk brkint ignpar -parmrk -inpck istrip -inlcr -igncr icrnl -iuclc
ixon -ixany ixoff -imaxbel -rtsxoff -ctsxon -ienqak
isig icanon -iexten -xcase echo echoe echok -echonl -noflsh
-echoctl -echoprt -echoke -flusho -pendin
opost -olcuc onlcr -ocrnl -onocr -onlret -ofill -ofdel -tostop


I'm wondering though if you have your shell properly set up. Check /etc/password for the shell of your user id and then make sure you have access, and it does what a shell is supposed to do.

I suppose I'd look for funky stuff in /etc/profile or /home/~username/.profile having to do with SHELL or stty entries.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Frank Slootweg
Honored Contributor

Re: sheel in 'jam'

Please post the output from "stty -a" as it is just *before* you start top(1).
Lorenzo Facello
Valued Contributor

Re: sheel in 'jam'

Hi,
I put in attachment the stty output of the workstation and the server.

When I start top from my workstation (nmcsa03), there aren't problems, but when I log on my server (nmcfms01), and I launch top I have the problems decribed above.
I think all parametres are ok
becouse I compare them with others workstation.
I try also to change some parametres of min= and time=
but nothing change.
Please help me!
Thanks L.
Frank Slootweg
Honored Contributor

Re: sheel in 'jam'

Sorry, I have no idea why your server gives this problem. Both your workstation and server have "intr = ^C", which is correct, and I see no other relevant differences in the "stty -a" settings.