https://github.com/erikh/multi
Multi-Command simple parallel launcher for local commands and ssh
https://github.com/erikh/multi
golang parallel ssh
Last synced: about 1 year ago
JSON representation
Multi-Command simple parallel launcher for local commands and ssh
- Host: GitHub
- URL: https://github.com/erikh/multi
- Owner: erikh
- Created: 2018-08-04T08:55:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-07T09:30:40.000Z (over 7 years ago)
- Last Synced: 2025-02-08T10:42:37.153Z (over 1 year ago)
- Topics: golang, parallel, ssh
- Language: Go
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## multi: a new approach to parallel commands
multi is a small tool for making many ssh connections or local executors at once.
It is very fast. It is a much simpler version of GNU parallel with the
additional thread-based (not process-based) ssh functionality.
You can pass two formats to each command, as well as `%%` to escape:
* `%t` - the thread id (unique id of each thread)
* `%i` - the item if -i was enabled, this will be a unique line from stdin.
No attempt is made to guarantee thread/item uniformity; runs may change thread
ids for items between invocations.
If both count and input are specified, the longer length wins, with the input
being omitted for any items that are are not there when coordinating with the
count.
If count is specified in ssh mode, it will be multiplied by the host list; and
count invocations will be run on each host.
There is currently no concurrency limit; it's gated at the number of items you
pass it.
## Author
Erik Hollensbe