Skip to content

Instantly share code, notes, and snippets.

@yunghoy
Created September 11, 2017 06:52
Show Gist options
  • Select an option

  • Save yunghoy/b981a0063f26372878b5b16be7b09047 to your computer and use it in GitHub Desktop.

Select an option

Save yunghoy/b981a0063f26372878b5b16be7b09047 to your computer and use it in GitHub Desktop.
COMMAND='echo hello'
if [ ! -z "$1" ]; then
COMMAND=$1
fi
parallel-ssh -i -h host.list -l ubuntu -x "-oStrictHostKeyChecking=no -i aws.key" $COMMAND
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment