-
-
Save mmphego/5fd09f1e1c4ae2e0ac1021d2d68a5bf2 to your computer and use it in GitHub Desktop.
execute bash script from remote site
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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