Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Aug 1998 02:11:47 -0400
From:      wayne@staff.msen.com
To:        questions@FreeBSD.ORG
Subject:   Why does rshd fail to read input?
Message-ID:  <199808260611.CAA08116@manor.msen.com>

next in thread | raw e-mail | index | archive | help

For years, I have always moved data between machines with a command
resembling:

	tar cf - <files> | 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808260611.CAA08116>