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

@ -4,6 +4,7 @@
* Rework config handling into a module
* Rework cluster handling into a module
* Added 'autoclose' functionality - see docs
* Allow "-a 'cmd ; cmd'" to work for multiple remote commands
2011-07-28 Duncan Ferguson <duncan_ferguson@user.sf.net> - v4.00_11
* Fix '-l <username>' option (SF bug 3380675)

View file

@ -1 +0,0 @@
allow for multiple commands with -a 'echo ; echo ; echo'

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