P
Paul Lynch
I've been having some trouble using IO.popen to control an ssh process
(and also mysqldump) on Linux. My understanding is that if I do:
p = IO.popen('ssh mymachine')
then the input and output of the ssh subprocess should be accessible via
p. However, when I try that in an irb shell, the ssh process
immediately takes over the standard input and output of irb, and I get
an "Enter password:" prompt. I have to hit control-c to get back to the
irb prompt.
Is there a workaround for this? Or should I be doing this a different
way? Thanks,
--Paul
(and also mysqldump) on Linux. My understanding is that if I do:
p = IO.popen('ssh mymachine')
then the input and output of the ssh subprocess should be accessible via
p. However, when I try that in an irb shell, the ssh process
immediately takes over the standard input and output of irb, and I get
an "Enter password:" prompt. I have to hit control-c to get back to the
irb prompt.
Is there a workaround for this? Or should I be doing this a different
way? Thanks,
--Paul