Get "-a 'cmd ; cmd'" multiple commands working

Previously
    cssh -a "hostname ; hostname" <server>
would return the remote hostname and the local hostname.  Fix to allow for both commands to run on the remote server.
This commit is contained in:
Duncan Ferguson 2011-12-03 10:03:03 +00:00
parent 5d59372fbf
commit cb3aa92feb
3 changed files with 2 additions and 2 deletions

View file

@ -119,7 +119,7 @@ sub script {
\$command .= "\$svr";
}
}
\$command .= " $command ; $postcommand";
\$command .= " \\\"$command\\\" ; $postcommand";
warn("Running:\$command\\n"); # for debug purposes
exec(\$command);
HERE