Run a command multiple times and glance at the outputs.
mult command --you=want to run
mult
can come in handy in a few scenarios, such as:
- Investigating inconsistent responses from a web server
- Checking the outcomes of a flaky test suite
- Running quick and dirty performance/stress tests
homebrew:
brew install dhth/tap/mult
go:
go install github.com/dhth/mult@latest
Or get the binaries directly from a release.
mult \
-n=10 \
yourcommand --with=flags --and=args as usual
mult \
-i \
yourcommand --with=flags --and=args as usual
By default, mult
executes all runs concurrently. Use -s
for sequentially
execution.
mult \
-s \
yourcommand --with=flags --and=args as usual
mult \
-s \
-delay-ms=500 \
yourcommand --with=flags --and=args as usual
mult \
-s \
-ff \
yourcommand --with=flags --and=args as usual
Note: -delay-ms
, -ff
only apply in sequential run mode.