I have setup a few EC2 instances, which all have a script in the home directory. I would like to run the script simultaneously across each EC2 instance, i.e. without going through a loop.
I have seen csshX for OSX for terminal interactive useage…but was wondering what the commandline code is to execute commands like
ssh user@ip.address . test.sh
to run the test.sh script across all instances since…
csshX user@ip.address.1 user@ip.address.2 user@ip.address.3 . test.sh
does not work…
I would like to do this over the commandline as I would like to automate this process by adding it into a shell script.
and for bonus points…if there is a way to send a message back to the machine sending the command that it has completed running the script that would be fantastic.
will it be good enough to have a master shell script that runs all these things in the background? e.g.,
echo all done.
it will not be exactly simultaneous, but it should kick off the remote scripts in parallel.