title: How do I log output of a shell script and also display on the screen?
body: <p>I am running a script called upgrade.sh</p>
  
  <p>ANd upgrade.sh calls a script called roll.sh</p>
  
  <pre><code>roll.sh &gt;&gt; logfile.text
  </code></pre>
  
  <p>But roll.sh has some questions and prompts, and the redirect is preventing those outputs from hitting the screen. I cannot edit roll.sh. </p>
  
  <p>I also tried `results=$(roll.sh)</p>
  
  <p>Even then, the output was not coming onto the screen</p>