Skip to content

Instantly share code, notes, and snippets.

@eam
Created March 4, 2016 23:13
Show Gist options
  • Save eam/f33b22ce3c429c2b9f32 to your computer and use it in GitHub Desktop.
Save eam/f33b22ce3c429c2b9f32 to your computer and use it in GitHub Desktop.
m = MultipleCmd.new
m.commands = ["ssh foo ls", "ssh bar rsync"]
m.perchild_timeout = 10 # ten seconds per command
m.global_timeout = 15 # fifteen second timeout for everything
m.maxflight = 10 # parallelism
result = m.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment