Re: ssh tput error 'tput: No value for $TERM and no -T specified'
Matt Price <matt.price@utoronto.ca> wrote:
> Thomas Dickey wrote:
>> Matt Price <matt.price@utoronto.ca> wrote:
>>
>>
>>>I've checked and $TERM is in fact set to 'xterm' on the client
>>>temrinal before I execute the ocmmand, and in remote sessions started
>>
>>
>> perhaps. I just ran
>> ssh server env
>> and saw no sign of $TERM, other than the message
>> TERM: Undefined variable.
>>
> hmm. same here. But when I try:
> TERM=xterm ssh server env
> there's s till no sign. So what would the next step be?
I'm not sure (that is I don't know which part of the ssh connection is doing
this).
ssh's either filtering out some/all environment variables, or because the
connection is coming in on a pty which doesn't actually have a terminal
associated with it, the target is stripping it out since it doesn't know. In
some contexts, that sort of thing would set $TERM to "network".
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Reply to: