diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-12-07T12·33+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-12-07T12·33+0000 |
commit | 7d0444e2446c71e79e49f46f371c62f6d20488d7 (patch) | |
tree | c739c4e9d6682e98da19978ceb10334e377f665a /scripts/SSH.pm | |
parent | 8062d3af30b27eb4d617c14856d4f3a173f8012e (diff) |
* Bad things happen when a filehandle has the same name as a module.
Diffstat (limited to 'scripts/SSH.pm')
-rw-r--r-- | scripts/SSH.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/SSH.pm b/scripts/SSH.pm index 44a0e6f31b1c..3b546ca522da 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 (<SSH>) { + while (<SSHPIPE>) { chomp; if ($_ eq "started") { $sshStarted = 1; |