* Bad things happen when a filehandle has the same name as a module.
This commit is contained in:
parent
8062d3af30
commit
7d0444e244
|
@ -24,9 +24,9 @@ sub openSSHConnection {
|
||||||
# child continues to run if we are killed. So instead make SSH
|
# child continues to run if we are killed. So instead make SSH
|
||||||
# print "started" when it has established the connection, and wait
|
# print "started" when it has established the connection, and wait
|
||||||
# until we see that.
|
# 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;
|
chomp;
|
||||||
if ($_ eq "started") {
|
if ($_ eq "started") {
|
||||||
$sshStarted = 1;
|
$sshStarted = 1;
|
||||||
|
|
Loading…
Reference in a new issue