Skip to content

Instantly share code, notes, and snippets.

@n0ts
Created May 1, 2014 06:35
Show Gist options
  • Star 50 You must be signed in to star a gist
  • Fork 17 You must be signed in to fork a gist
  • Save n0ts/146c65b95a80b0a90934 to your computer and use it in GitHub Desktop.
Save n0ts/146c65b95a80b0a90934 to your computer and use it in GitHub Desktop.
execute bash script from remote site
# http://stackoverflow.com/questions/5735666/execute-bash-script-from-url
bash <(curl -s http://mywebsite.com/myscript.txt)
# http://stackoverflow.com/questions/4642915/passing-parameters-to-bash-when-executing-a-script-fetched-by-curl
curl http://foo.com/script.sh | bash -s arg1 arg2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment