[EMAIL PROTECTED] <[EMAIL PROTECTED]> typed:
:They're not the same - so how do I fix it?  :-)

ssh has two modes, command mode and interactive mode.  In command
mode the remote end just executes the specified command.  In
interactive mode the local end sends information like the TERM
environmental variable and window size, etc.  

:ssh -l cgreen -x x-1.net 'echo $TERM' returns 'dumb', whereas
:connecting to x-1.net and then 'echo $TERM' gives me the expected
:'rxvt'.

In command mode the command is normally run with the remote shell for
the user or /bin/sh if that's unset.  If you've got a Bourne shell based
shell, something like (1).  If a csh based shell, something like (2):

(1) ssh foo.bar 'TERM=rxvt mutt'
(2) ssh foo.bar 'setenv TERM rxvt; mutt'

:I suppose I could have a little script on the remote system that does
:something like:-
:    export TERM=rxvt
:    /home/d/cgreen/bin/mutt

or make a script :-)

Regards,
-- 
Geoff Wing : <[EMAIL PROTECTED]>     Work URL: http://www.primenet.com.au/
Rxvt Stuff : <[EMAIL PROTECTED]>      Ego URL : http://pobox.com/~gcw/
Zsh Stuff  : <[EMAIL PROTECTED]>       Phone   : (Australia) 0413 431 874

Reply via email to