Skip to content

Instantly share code, notes, and snippets.

@marr
Created March 26, 2015 05:02
Show Gist options
  • Save marr/d756508fa56d04e97c69 to your computer and use it in GitHub Desktop.
Save marr/d756508fa56d04e97c69 to your computer and use it in GitHub Desktop.
#!/bin/bash
file1=/srv/site/current/REVISION
file2=/srv/api/current/REVISION
file3=/srv/www/current/REVISION
for host in staging-api{1..3}; do
ssh $host 'printf "host: %s site: %s api: %s www: %s\n" "$host" "$(<file1)" "$(<file2)" "$(<file3)"'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment