diff --git a/scripts/SSH.pm b/scripts/SSH.pm index 44a0e6f31..3b546ca52 100644 --- a/scripts/SSH.pm +++ b/scripts/SSH.pm @@ -24,9 +24,9 @@ sub openSSHConnection { # child continues to run if we are killed. So instead make SSH # print "started" when it has established the connection, and wait # until we see that. - open SSH, "ssh $sshHost @sshOpts -M -N -o LocalCommand='echo started' -o PermitLocalCommand=yes |" or die; + open SSHPIPE, "ssh $sshHost @sshOpts -M -N -o LocalCommand='echo started' -o PermitLocalCommand=yes |" or die; - while () { + while () { chomp; if ($_ eq "started") { $sshStarted = 1;