Skip to content

Instantly share code, notes, and snippets.

@omnifroodle
Created March 7, 2012 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omnifroodle/1990889 to your computer and use it in GitHub Desktop.
Save omnifroodle/1990889 to your computer and use it in GitHub Desktop.
server spinner
for INSTANCE in `cat ~/instance_addr_list`
do
echo '------------'
echo $INSTANCE
echo '------------'
for i in 1 2
do
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=false $INSTANCE "nohup sh ~/bin/image-node/do-task.sh &> /dev/null &"
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment