rcp command? TERM environment variable not set

Posted on 2003-02-19
Medium Priority
Last Modified: 2012-06-21
Hi!! ,
   I'm  aware  of remote copy command .I  have two servers OS Linux 8.0.  I  have done the relevent enteries into  .rhosts file of my user  as  well as in /etc/host.equiv .
       When my entries were  not appropriate it gives the error "permission denied" but after done appropriate entries now it gives the error .
       (TERM env is not set).
I'm working through PC and set the terminator like

export TERM=xterm

I also tried  export TERM=ansi,TERM=vt100

export DISPLAY=<computer name>:0
BUT I'm geting same ERR

 "TERM environment variable not set."

  Am I doing some basic  mistake?

Question by:sarabmann
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 7992139
I assume you are using the appropriate shell coz the command varies depending on your default shell (export or setenv).
You could also try putting this in your.cshrc or .profile so that it gets automatically set on login.

Expert Comment

ID: 7993537
rcp and other rsh clients do an implicit login. They do not have a terminal, and WILL misbehave if the startup scripts for sh, csh, or bash (whichever one you use) try to output to the console.
To fix this problem, you must clean up your .profile, .bashrc etc to remove any garbage being output in a non-interactive login.

For example:
If you use bash then PS1 is set if the shell is interactive so you should enclose any console output inside a condition statement like:
if [ "$PS1" ]; then
 console put statements


Author Comment

ID: 7994214
I'm using " .bashrc" , ".bash" is a  shell  ,moreover I  also looked what it is etting by typing "env"
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Expert Comment

ID: 8006354
Set the TERM/DISPLAY in the .bashrc of your account on the remote machine ( if it isn't a common mounted file system).
If you are setting the DISPLAY environment variable, ensure that you do an xhost + or xhost + <remote machine> on your local machine.

Expert Comment

ID: 9087934
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 12

Expert Comment

ID: 9259356
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is to:

Be PAQ'd/Points No Refunded

Please leave any comments here within the next seven days.


EE Cleanup Volunteer

Accepted Solution

YensidMod earned 0 total points
ID: 9325303
PAQed per request/recommendation - No Refund

Community Support Moderator

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question