Go Back   Technology Questions > Software Questions > Operating System Questions > Linux

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 06-11-2008, 06:10 AM
bl8n8r
Tablet PC Guest
 
Posts: n/a
ssh "TERM is not defined."

Hello all.
just fyi, I ran across this error message while using rsnapshot/ssh
between a couple boxes. /etc/bashrc uses setterm to disable the
terminal bell (setterm -blength 0) however the ssh session sets the
TERM environment variable to "dumb", which setterm knows nothing about
(apparently). Adding the if statement around my setterm commands
fixes the "$TERM is not defined" error message.

# ssh sets TERM to dumb when using scp or other...
if [ "$TERM" != "dumb" ]; then
setterm -blength 0
setterm -bfreq 0
fi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 06-11-2008, 06:10 AM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.
  #2 (permalink)  
Old 06-11-2008, 07:00 AM
Lew Pitcher
Tablet PC Guest
 
Posts: n/a
Re: ssh "TERM is not defined."

In alt.os.linux, bl8n8r wrote:

> Hello all.
> just fyi, I ran across this error message while using rsnapshot/ssh
> between a couple boxes. /etc/bashrc uses setterm to disable the
> terminal bell (setterm -blength 0) however the ssh session sets the
> TERM environment variable to "dumb", which setterm knows nothing about
> (apparently).


This points to a faulty or incomplete terminfo database. There /should/ be
an entry for the (historic) "dumb" terminal in your /usr/share/terminfo
directory tree (fil /usr/share/terminfo/d/dumb).

On my Slackware 12 system, this "dumb" device decomposes (via infocmp(1m) )
to the definition
~ $ infocmp dumb
# Reconstructed via infocmp from file: /usr/share/terminfo/d/dumb
dumb|80-column dumb tty,
am,
cols#80,
bel=^G, cr=^M, cud1=^J, ind=^J,
You should be able to use the infotocap(1m) utility to convert this
definition into a useable terminfo file

> Adding the if statement around my setterm commands
> fixes the "$TERM is not defined" error message.


"Fixes", as in "works around the configuration error"


> # ssh sets TERM to dumb when using scp or other...
> if [ "$TERM" != "dumb" ]; then
> setterm -blength 0
> setterm -bfreq 0
> fi


--
Lew Pitcher

Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do emails sent from PDA have no "To" or "Subject" in "Sentitems" folder on Exchange server? Michael Levin Pocket PC General 0 05-27-2008 03:30 AM
Vista not wotking with "My Computer" or "Control Panel", "Screen Saver" Platebanger Windows Vista 6 02-05-2008 07:00 AM
WM5 Sync with Vista "Windows Calender", "Contacts", and "Mail" Tony Windows Vista 1 02-16-2007 04:31 PM
Remove "Edit", "Print", "Preview" from context menu? Mo Windows XP 8 01-04-2007 03:44 AM
Remove "Edit", "Print", "Preview" from context menu Mo Windows XP 0 01-04-2007 03:40 AM


All times are GMT -8. The time now is 02:14 PM.


2003 - 2008 All Rights Reserved. Technology Questions

SEO by vBSEO 3.1.0