cancel
Showing results for 
Search instead for 
Did you mean: 

ssh top

 
SOLVED
Go to solution
Highlighted
Super Advisor

ssh top

$ ssh remote_host top
top: Unknown terminal "VT100" in $TERM

The remote host is Red Hat Enterprise Linux 3 and has the environment variable XTERM=vt100.

The local host is Red Hat Enterprise Linux 4 and has the environment variable XTERM=xterm.

Any idea?
Should I change set XTERM=xterm into the remote host? what other funcionaliti is going to change or fail if I change that variable in remote host?
5 REPLIES 5
Highlighted
Honored Contributor

Re: ssh top

I think that is complainig about VT100 upper case, change to lower case vt100.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Highlighted
Exalted Contributor

Re: ssh top

Shalom

export TERM=vt100

Might want that in the user profile as well.

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
Highlighted
Super Advisor

Re: ssh top

Ivan:

The upper case is only the message shown, the value of the env variable is "vt100".

Steven:
I have set the env variable XTERM=vt100 in the local machine but the result is exactly the same error message.
Highlighted
Honored Contributor
Solution

Re: ssh top

Even if you get the TERM assignment to work, the command will probably still fail.

I've got a test below going from RH5 to RH4 (not the same, I know, but as close as I could come)...

$> ssh remote_host "(export TERM=xterm; top)"
top: failed tty get

I tried with "ssh -X" and got the same thing.

The problem is, it will fail the "isatty()" code check in the program.

So, what you need is a whole new xterm:


$> ssh -X remote_host "xterm -e top"

Now you'll get a new window with top running in it.

Close enough???

We are the people our parents warned us about --Jimmy Buffett
Highlighted
Super Advisor

Re: ssh top

ssh -X remote_host "xterm -e top" works well for me.

Thank you!