Skip to content

Instantly share code, notes, and snippets.

@cinco
Forked from n0ts/remote_bash.sh
Created July 26, 2018 18:41
Show Gist options
  • Save cinco/470a7617ea826d893fa490cf4f1dfa43 to your computer and use it in GitHub Desktop.
Save cinco/470a7617ea826d893fa490cf4f1dfa43 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
@cinco
Copy link
Author

cinco commented Jan 9, 2020

#bash #curl #gist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment