From owner-freebsd-questions Thu Sep 5 05:23:34 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id FAA09690 for questions-outgoing; Thu, 5 Sep 1996 05:23:34 -0700 (PDT) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id FAA09674 for ; Thu, 5 Sep 1996 05:23:28 -0700 (PDT) From: af@biomath.jussieu.fr Received: from mekong.biomath.jussieu.fr (mekong.biomath.jussieu.fr [134.157.72.87]) by shiva.jussieu.fr (8.7.5/jtpda-5.2) with SMTP id OAA12762 ; Thu, 5 Sep 1996 14:23:01 +0200 (METDST) Received: from asterix.biomath.jussieu.fr (asterix) by mekong.biomath.jussieu.fr (5.67b/jn930126+af960830(mailhost)) at Thu, 5 Sep 1996 14:23:30 +0100 Received: from (af@localhost) by asterix.biomath.jussieu.fr (8.7.5/jtpda-5.2) id OAA09349 ; Thu, 5 Sep 1996 14:23:29 +0100 (WET) Date: Thu, 5 Sep 1996 14:23:29 +0100 (WET) Message-Id: <199609051323.OAA09349@asterix.biomath.jussieu.fr> To: geoid@ktnet.co.kr Subject: Re: rcp: stty: : Invalid argument. Cc: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Md5: IOOn1fu925nL0DgOWpfBDA== Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk ------------- Begin Included Message ------------- I don't any experience Berkeley r-command. So, I am not sure that this is a real problem.. I have to FreeBSD 2.1.5 box, a.domain.name, b.domain.name. I have made .rhost file on a.domain.name and b.domain.name. The .rhost at a.domain.name says # .rhost for a.domain.name b.domain.name geoid The .rhost at b.domain.name says # .rhost for b.domain.name a.domain.name geoid When I tried to rcp "test" from a, rcp causes error b:/user/geoid % rcp a:test . rcp: stty: : Invalid argument. b:/user/geoid % I tried "rcp a.domain.name:test .", "rcp a:test test", "rcp a:test b:test"... rsh, and rlogin just run fine.. What shall I do to use rcp ? ------------- End Included Message ------------- Seems to me that you have a stty command in your .cshrc (or .login ?) that gets confused because the process created by the rcp command from the remote machine does not have a tty as stdin. In my .cshrc file, I always bracket commands that are typically only used in a really interactive context by: if (?$prompt) then # Commands like stty, tset, set prompt=... endif _Alain_ -- Alain FAUCONNET Ingenieur systeme - System Manager AP-HP/SIM Public Health 91 bld de l'Hopital 75013 PARIS FRANCE Medical Computing Research Labs Mail: af@biomath.jussieu.fr Tel: (+33) 1-40-77-96-19 Fax: (+33) 1-45-86-80-68 I've RTFMed. It says: "Refer to your system administrator" But... I *am* the system administrator :-]