| |||
| 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 |
| |||
| 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. ------ |
![]() |
| Bookmarks |
| Thread Tools | |
| |
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 |