title: Why is the shell output txt file empty?
body: <p>Kindly assist. I am working on a script that will perform a telnet test to a specific ip address on a specific TCP port and below is my script.</p>
  <pre><code>#! /bin/sh
  
  nc -z -v -w5 192.168.88.55 3389 | tee results.txt
  
  </code></pre>
  <p>During execution, a &quot;results.txt&quot; file is created but it is empty. I want it to have the output of the script after execution.</p>