Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAbility to execute multiple commands on the same hosts #114
Comments
|
Hi there, Thanks for the interest and feature request. One option is, as shown above, to run individual commands separately. Performance wise there is not much overhead as all commands are executed asynchronously whether they were started together or one after the other. That overhead is the same whether the starting of commands is done client side or by parallel-ssh itself. The other option is to run multiple commands together per server, eg:
This gives the desired output. The three commands are however executed serially per host. How to run the commands also depends on the users' shell. I think adding a convenience function for running multiple commands per host in parallel and simplifying output gathering would be useful - it's not the first time it has been asked. The output generators can be chained together to give combined output. However, it is worth pointing out that this will not yield any performance benefit over a client-side function that does the same thing. |
Feature Request
I've read through examples and the current ParallelSSH can
What's missing is the ability to execute multiple commands on each host and perhaps group the output to each host.
Example:
Current Work-Around State:
Actual Output:
It's not the prettiest nor do I entertain the idea of 3 nested for-loops that defeated the purpose of parallel-SSH with each loop eating into the performance. If there's a better way to implement this, let me know or if it doesn't exist, please implement it.
Preferred Output: