Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Telnet Linux to HPUX - Messy Screen

Status
Not open for further replies.

tony500

MIS
Mar 20, 2002
19
0
0
US
I use mandrake 8.1 and telnet to an HP unix server on a LAN. When I telnet in, my environment is messed up. When I run commands such as `ls -l` it is a sideways, out-of-line mess. What is the best way to make the TERM on the Linux box match the TERM on the HP Unix box? (and is that the problem?) You can usually find me at
 
When you log in, echo $TERM. What is the result and does it match your emulator ?

Bill.
 
Specifically, what emulator / terminal type are you using ? Brand name.

Bill.
 
If a standard shell via telnet, I'd suggest setting your emulation to "vt100" or something like that.

export TERM=vt100

Other options are vt220, vt320.

Bill.
 
Sounds like you are doing it the right way. Can you send me a screen scrape of a session (start the session just before you log in, do a few commands, log out, stop the scrape.)

Bill.
 
It depends on your emulator. You telnet client should be able to log everything. If not, once you log into the HP server, type the "script" command. When you have completed the steps I mentioned above, type "exit". Then, post the contents of the file called "typescript". The script commands creates the file called "typescript".

Bill.
 
ok here goes:

Script started on Wed Mar 20 13:33:53 2002

[tony@0QB3H tony]$ export TERM=vt100

]0;tony@0QB3H: /home/tony[tony@0QB3H tony]$ 
[tony@0QB3H tony]$ e
[tony@0QB3H tony]$ ec
[tony@0QB3H tony]$ ech
[tony@0QB3H tony]$ echo
[tony@0QB3H tony]$ echo 
[tony@0QB3H tony]$ echo $
[tony@0QB3H tony]$ echo $T
[tony@0QB3H tony]$ echo $TE
[tony@0QB3H tony]$ echo $TER
[tony@0QB3H tony]$ echo $TERM

vt100

]0;tony@0QB3H: /home/tony[tony@0QB3H tony]$ 
[tony@0QB3H tony]$ r
[tony@0QB3H tony]$ ri
[tony@0QB3H tony]$ rim
[tony@0QB3H tony]$ rims

Trying xx.x.xxx.xx...


Connected to xx.x.xxx.xx (xx.x.xxx.xx).


Escape character is '^]'.




HP-UX XXXXX B.10.20 B 9000/803 (ttyp7)



login: tony

Password:
Please wait...checking for disk quotas
(c)Copyright 1983-1996 Hewlett-Packard Co., All Rights Reserved.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 Novell, Inc.
(c)Copyright 1986-1992 Sun Microsystems, Inc.
(c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology
(c)Copyright 1989-1993 The Open Software Foundation, Inc.
(c)Copyright 1986 Digital Equipment Corp.
(c)Copyright 1990 Motorola, Inc.
(c)Copyright 1990, 1991, 1992 Cornell University
(c)Copyright 1989-1991 The University of Maryland
(c)Copyright 1988 Carnegie Mellon University

RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the U.S. Government is subject to
restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in
Technical Data and Computer Software clause in DFARS 252.227-7013.


Hewlett-Packard Company
3000 Hanover Street
Palo Alto, CA 94304 U.S.A.

Rights for non-DOD U.S. Government Departments and Agencies are as set
forth in FAR 52.227-19(c)(1,2).
TERM = (wyse60) vt100


51: w

1:56pm up 51 days, 21 mins, 9 users, load average: 0.25, 0.17, 0.14
User tty login@ idle JCPU PCPU what
xxxxxxx ttyp1 8:20am 4:33 4:33 /rims/cobol/rts32 qicclaim
xxxxxxx ttyp2 8:21am 5 52 52 /rims/cobol/rts32 qicclaim
xxxxxx ttyp3 8:23am 1 3:02 3:02 /rims/cobol/rts32 qicclaim
xxxx ttyp4 8:25am 31 1:16 1:16 /rims/cobol/rts32 qicclaim
xxxxxxxx ttyp5 8:26am 2:33 2:33 /rims/cobol/rts32 qicclaim
xxxxxxx ttyp6 8:28am 2:44 2:44 /rims/obj/ucps *sclpm000016638 /rims/site1/prod1/contrl wscl
xxxx ttyp7 1:55pm w
xxxxxxxx ttyp8 8:50am 2:39 1 1 /rims/cobol/rts32 qicclaim
xxxxxx ttypd 9:24am 3:23 1 1 /rims/cobol/rts32 qicclaim
Tony 52: pwd

/home/tony
Tony 53: echo $TERM

vt100
Tony 54: exit

Tony 55: logout
Connection closed by foreign host.


]tony@0QB3H: /home/tony[ tony@0QB3H tony]$ 
[tony@0QB3H tony]$ e
[tony@0QB3H tony]$ ex
[tony@0QB3H tony]$ exi
[tony@0QB3H tony]$ exit
Script done on Wed Mar 20 13:35:43 2002 You can usually find me at
 
Well, the connection to the HP machine looks normal from the post. The session on the originating server looks weird though. Is that the one acting up ?

Bill.
 
It looks normal in the typescript file, but it doesn't look normal when I'm doing it. Its all slanted and I can't backspace or anything.
I'm just telneting from the linux prompt. Everything looks fine in linux, but when I telnet to Unix and login it goes bad.
I can telnet in from Windows and I don't have this problem, but who wants to use Windows?!
I don't know what else to do though... You can usually find me at
 
Are you using KDE or Gnome ? I've had some bad experiences with KDE. Honestly, beyond this, I'll probably wish you luck and bow out to let some others hopefully assist you. I've exhausted my options. I think it is a simple emulator mismatch, but I'm pretty dry on Mandrake. If it were RedHat I might be able to help more.

Perhaps consider posting this in the Linux forum.

Bill.
 
I'm using KDE. Maybe I'll try GNOME. I put this question to Forum on and it got no response what so ever. I suppose the people there were mostly home users with no Unix server to telnet into.

Thanks so much for trying to help. I do appreciate your time. :) You can usually find me at
 
if gnome doesn't work I'd try dropping out of the GUI and see if there are still problems when working from the command line.
 
try using 'tset' to initialize your terminal s/w after setting the environment variable

alternatively, set the $DISPLAY and just run xterm on the remote system Mike
"Experience is the comb that Nature gives us after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top