Skip to content

Instantly share code, notes, and snippets.

@sigreer
Forked from n0ts/remote_bash.sh
Created January 4, 2023 22:59
Show Gist options
  • Select an option

  • Save sigreer/551390a3f83e4cd89e99da2285863c25 to your computer and use it in GitHub Desktop.

Select an option

Save sigreer/551390a3f83e4cd89e99da2285863c25 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