Networking Forums

Networking Forums > Computer Networking > Linux Networking > Setting $TERM when using rsh and ssh with bash

Reply
Thread Tools Display Modes

Setting $TERM when using rsh and ssh with bash

 
 
waterbottleboodle
Guest
Posts: n/a

 
      11-07-2003, 01:57 AM
I keep getting the following error message each time I try to use rsh
to get a (ls -a) listing from a remote filesystem:

"No value for $TERM and no -T specified"

The listing comes through fine, but I get that error message at the
end of the listing.

I'm using Redhat 9.0,
GNU bash, version2.05b.0(1)-release(i386-redhat-linux-gnu)

In my ~/.bashrc I have tried the following:
export TERM='vt100'
export TERM='dtterm'
export TERM='xterm'

My shell is definitely bash, and echo $TERM reports one of the above.

So I know that the environment variable is set, but when I added a
echo "My term = $TERM" to my /etc/bashrc file, and then try to get
the listing it prints out the directory listing and reports that my
term is "dumb" and then prints out the error message.

I also get the error message when I try ssh like the following:

myprompt> ssh 11.22.33.44 echo Hello; (11.22.33.44 isn't real IP
addr.)

No value for $TERM and no -T specifiedHello

No value for $TERM and no -T specified

myprompt>

So why isn't my $TERM variable being properly set for the rsh and ssh
(non-interactive? shells), and how should I set it?

I do understand that rsh isn't secure. I am working from a completely
isolated network.

Thanks for your help.
 
Reply With Quote
 
 
 
 
Bill Marcum
Guest
Posts: n/a

 
      11-08-2003, 10:29 PM
On 6 Nov 2003 18:57:20 -0800, waterbottleboodle
<(E-Mail Removed)> wrote:
>
> So why isn't my $TERM variable being properly set for the rsh and ssh
> (non-interactive? shells), and how should I set it?
>

ssh -t hostname command

--
You can go anywhere you want if you look serious and carry a clipboard.
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux bash syntax Q: Coenraad Loubser Linux Networking 4 01-16-2005 05:31 PM
zmienna bash Zenon Linux Networking 1 05-07-2004 11:21 AM
Bash script to see if PPP link is up... Gabriel Michael Linux Networking 34 09-14-2003 03:55 PM
Bash script via inetd = no joy tylernt Linux Networking 10 09-05-2003 08:53 PM
confused with BASH shell in Redhat Ka Linux Networking 10 09-03-2003 12:25 AM



1 2 3 4 5 6 7 8 9 10 11