1846990 Members
3645 Online
110257 Solutions
New Discussion

Re: TTY Issue?

 
joe_91
Super Advisor

TTY Issue?

Hi:
I am logged in from home. I get connected to my server using a telnet (PC) session. when i login to a particular server as root, i am not able to do ll. it just throws junk. on the other servers it is fine. Please let me know how to solve this. Should i capture the tty from the working server. if so how? pl. help

Thanks

Joe
9 REPLIES 9
Steve Steel
Honored Contributor

Re: TTY Issue?

Hi

Sounds like stty


look at stty -a on one that works and on the one that doesnt.


Probably there is a difference in baud rate


Otherwise please define junk


Steve Steel

"We must open the doors of opportunity. But we must also equip our people to walk through those doors."
-- Lyndon B. Johnson
If you want truly to understand something, try to change it. (Kurt Lewin)
Rodney Hills
Honored Contributor

Re: TTY Issue?

Strange that only "ll" would have a problem...

Is it possible in the login profile for "root" you have hardcoded a terminal type (TERM variable) that has problems with Microsoft Windows telnet?

-- Rod Hills
There be dragons...
joe_91
Super Advisor

Re: TTY Issue?

Hi Steve:

Thanks. When i do "ll" or "ls" it throws junk characters and i get the prompt back only after a ^c.


Thanks

Joe.
A. Clay Stephenson
Acclaimed Contributor

Re: TTY Issue?

Almost certainly the ttyp settings are different on this server. You can probably change the parity, stop bits, or word length on your PC terminal emulator so that you can connect. Plan B. Examine the /etc/gettydefs settings for working hosts and compare to this host. Examine /etc/innitab, the last field corresponds to the /etc/gettydefs entry for this particular port.
If it ain't broke, I can fix that.
joe_91
Super Advisor

Re: TTY Issue?

Hi:

Let me make it more clear. All i am getting is a prompt. i can't do any commands. when i do it is throwing to stdout as a junk.

Thanks

Joe.
Jeff Schussele
Honored Contributor

Re: TTY Issue?

Hi Joe,

What happens to listings from *other* dirs?
Do an ll /tmp (or some other dir) BEFORE you do an ll in the home dir.

Is it possible that you have a file in your home dir that contains terminal control-codes in the filename?

If not I'd agree that it's a stty problem.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
A. Clay Stephenson
Acclaimed Contributor

Re: TTY Issue?

I thought I was clear but here goes again. If you must talk to this box remotely today then your only option is to play with the tty settings on your PC emulator.
The likely candidates are baudrate, wordlength, stop bits, and parity - all of which can be adjusted on your PC emulator. THere are, of course, many combinations and permutations. I would start at 9600, 8,1,N then 9600, 7,2,E but it could be anything.

Plan C. If you can telnet to on of the 'good' hosts can you then telnet to the 'bad' host through the 'good' one?

If it ain't broke, I can fix that.
joe_91
Super Advisor

Re: TTY Issue?

Hi Clay:

Thanks. I telnet to the good one. From there i telnet to the bad one and my listing (ll) is gone.

Thanks

Joe.
Kent Ostby
Honored Contributor

Re: TTY Issue?

Joe ... even though you cant get response from commands on the "bad server", you may still be able to type commands.

Once you get the command prompt, type:

stty -sane

and see if that works.

Also try:

stty -parity

I have had to do this dialing into systems remotely at times.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"