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

Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment