Suppose I have a script: my_script.sh
Instead of doing
./my_script.sh
I want to do something like:
cat my_script.sh | <some command here>
such that the script executes. Is this possible?
The use case is if the script I want to execute is the output of a wget or s3cat, etc. Right now I save it to a temporary file, change it to executable, and then run it. Is there a way to do it directly?