From: Mike Cahill Date: 2007-05-19T10:55:51+09:00 Subject: ssh / popen / stdin weirdness ------=_NextPart_000_00ED_01C79997.478C58C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sorry I can't figure out how to find the cause of this myself. I'm sure = there's some article somewhere I'm not finding. on RHEL4 u3, ruby 1.8, create: =3D=3D=3D app.rb:=20 my_pipe =3D IO.popen("ssh foreign-host 'cat filename') file_contents =3D my_pipe.read my_pipe.close inp =3D $stdin.read=20 puts "returning " + inp =3D=3D=3D=3D Run this app from this host (call it ServerB): ruby app.rb <