Skip to content

Instantly share code, notes, and snippets.

@nullren
Created February 3, 2015 01:41
Show Gist options
  • Save nullren/2c48939cb7d51c3d2dbd to your computer and use it in GitHub Desktop.
Save nullren/2c48939cb7d51c3d2dbd to your computer and use it in GitHub Desktop.
abusing pgids to spawn a bazillion ssh commands that all terminate when you ^c
#!/bin/bash
trap "kill -1 -$$" SIGINT
for i in `cat objmanblasters{,}{,}{,}`; do
ssh $i -tt objmanblast </dev/null &
done
sleep infinity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment