title: Run a script piped from stdin (Linux/Shell Scripting)
body: <p>Suppose I have a script: <strong>my_script.sh</strong></p>
  
  <p>Instead of doing</p>
  
  <pre><code>./my_script.sh
  </code></pre>
  
  <p>I want to do something like:</p>
  
  <pre><code>cat my_script.sh | &lt;some command here&gt;
  </code></pre>
  
  <p>such that the script executes. Is this possible?</p>
  
  <p>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?</p>