Bash run script on web page from url

To run a script or set of commands from a remote website, do the following:

bash < <(curl --silent https://www.example.com/path/to/script.sh)

This will cause curl to pull the script and redirect its contents to stdin for bash to parse.

NOTE: be careful with this

View this page on GitHub.
Posted .

Comments

Leave a Reply