From owner-freebsd-questions Tue Aug 25 23:12:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA14401 for freebsd-questions-outgoing; Tue, 25 Aug 1998 23:12:30 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from manor.msen.com (manor.msen.com [148.59.4.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA14393 for ; Tue, 25 Aug 1998 23:12:26 -0700 (PDT) (envelope-from wayne@manor.msen.com) Received: from manor.msen.com (LOCALHOST [127.0.0.1]) by manor.msen.com (8.8.8/8.8.8) with ESMTP id CAA08116 for ; Wed, 26 Aug 1998 02:11:47 -0400 (EDT) (envelope-from wayne@manor.msen.com) Message-Id: <199808260611.CAA08116@manor.msen.com> To: questions@FreeBSD.ORG Subject: Why does rshd fail to read input? From: wayne@staff.msen.com Date: Wed, 26 Aug 1998 02:11:47 -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG For years, I have always moved data between machines with a command resembling: tar cf - | rsh target.box "(cd target.dir ; tar xpf -)" FreeBSD 2.2.6 and 2.2.7 do not appear to support this? Reducing this to the simplest case, I do everything local by putting my local hostname into ~/.rhosts. I can then do % rsh target.box ls (works OK) and % rsh target.box (looks like rlogin) but not % echo data > foo % tar cf - data | rsh `hostname` tar tvf - Broken pipe If I replace the remote tar with a 'cat > foo' foo appears to contain the data segment of my shell ??!! I have vindicated rsh itself, it works fine to other operating systems. Is this intentional, a bug, or am I missing something terribly obvious? /\/\ \/\/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message