LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-24-2005, 12:50 AM   #1
jimbo
LQ Newbie
 
Registered: Feb 2004
Distribution: RH9
Posts: 10

Rep: Reputation: 0
scp error, TERM env. variable not set?


I get a error when using scp. After I enter the password for the remote system, it returns the message:

TERM environment variable not set.

I am not sure what to do.

I get the same message from three different local machines running different distributions. I do ssh no problem.
 
Old 11-24-2005, 11:57 PM   #2
abhijeetudas
Member
 
Registered: Sep 2004
Distribution: Redhat / Fedora
Posts: 114

Rep: Reputation: 15
type env & check if
your terminal type variable is set.

should be something like

TERM=xterm-color
or vt100 or depending on what you are using.

most linux consoles use the one above.


if env doesnt show it then you can set it by adding the above line to
.bash_profile if you use the bash shell
or similar for other shells that you use!
 
Old 11-26-2005, 01:31 AM   #3
jimbo
LQ Newbie
 
Registered: Feb 2004
Distribution: RH9
Posts: 10

Original Poster
Rep: Reputation: 0
Yeah, I did that and I echo'ed $TERM. I was a little surprised to see that this shows the TERM value for the local machine, even though I am logged on to a remote system using ssh. For example my Ubuntu and Red Hat systems both show $TERM = xterm. This is the same whether I am logged on locally or remotely. My iBook shows xterm-color. Again, this value is the same whether logged on locally or to the remote through ssh. I will be at the remote system on Monday, I'll try reading the value for TERM then.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to test if an env variable is set King of Men Linux - Newbie 5 11-03-2005 04:39 AM
DISPLAY variable error...cannot set it rameshchandra Linux - General 2 10-09-2005 04:59 AM
how do you set an env variable from within a csh script? BrianK Linux - General 3 05-26-2004 02:16 PM
Cron: TERM environment variable not set. hydro Linux - General 4 04-15-2004 10:59 PM
$TERM Variable Problems LinuxTechie Red Hat 2 11-02-2003 10:29 AM


All times are GMT -5. The time now is 07:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration