Created
February 3, 2015 01:41
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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