Error while doing rcp to localhost

Hi,

Rcping a file to localhost fails due to echo statement in .login file on a machine with RH 5.5

However, the same rcp is successful on another machine with Suse 9.2 (with the same .login). I cannot change .login file and was wondering at what could be causing this ?

Command that I am using:

rcp filename localhost:/tmp

Can anyone please help with this?

Maybe look in .cshrc file.

Extract from "man csh". May be different on your system.

WARNINGS
      The .cshrc file should be structured such that it cannot generate any
      output on standard output or standard error, including occasions when
      it is invoked without an affiliated terminal.  rcp(1) causes .cshrc to
      be sourced, and any output generated by this file, even to standard
      error causes problems.  Commands such as stty(1) should be placed in
      .login, not in .cshrc, so that their output cannot affect rcp(1).

Hi Methyl.

Thanks for the reply. Found out that .login was also being sourced from .cshrc causing this problem.

Thanks for your help!