How can I run a script locally from a remote server such as www.mysite.com/script.sh
and it does not work.
This question came from our site for professional system and network administrators.
If you wrote the script -- meaning that you're absolutely certain you know what it does -- you can just do this:
So while this does, of course, "download" the script, it simply sends the data through the pipe rather than saving it to a file.
Then read the script to ensure it doesn't do anything malicious.