1833046 Members
2576 Online
110049 Solutions
New Discussion

remsh

 
Jinoy George
New Member

remsh

where is the environment variables for remsh stored? i want to remsh over to another server and have the correct terminal type for the output.
2 REPLIES 2
John Poff
Honored Contributor

Re: remsh

Hi,

They aren't. The 'remsh' command will execute a command on a remote system and return the standard output, but it is not designed for a terminal interface. Here is a snippet from the 'remsh' man page:

remsh uses the default remote login shell with the -c option to
execute the remote command. If the default remote shell is csh, csh
sources the remote .cshrc file before the command. remsh cannot be
used to run commands that require a terminal interface (such as vi) or
commands that read their standard error (such as more). In such
cases, use rlogin or telnet instead (see rlogin(1) and telnet(1)).


If you don't specify a command for 'remsh', it will login to the remote server just like using 'rlogin'. For 'rlogin', it takes the terminal type on the local system and uses that as the default on the remote system. Your .profile will normally test the $TERM variable and try to set it if it is blank, but since 'rlogin' brings one with it the .profile probably skips that and uses the default value from the first system.

JP
RAC_1
Honored Contributor

Re: remsh

Remsh goes through .profile of the user. You should be setting the term type in .profile.
A better way would be doing a tttype -s in .profile and set it.

Anil
There is no substitute to HARDWORK