Skip to content

Instantly share code, notes, and snippets.

@codysoyland
Created January 11, 2012 00:14
Show Gist options
  • Save codysoyland/1592102 to your computer and use it in GitHub Desktop.
Save codysoyland/1592102 to your computer and use it in GitHub Desktop.
fabric gateway script
#!/bin/sh
echo $* | ssh gateway "cat > /tmp/fab-runner; chmod +x /tmp/fab-runner"
ssh gateway -t screen bash -init-file /tmp/fab-runner
# Usage: gateway.sh fab production deploy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment