title: Emulating netcat -e
body: <p>How can I emulate <code>netcat -e</code> with a version of netcat that does not have the <code>-e</code> option ? </p>
  
  <p>I need to trigger a command remotely. I can do it with netcat - without <code>-e</code>: </p>
  
  <blockquote>
    <p>#!/bin/bash</p>
    
    <p>netcat -l 8080 ; myCommand.sh</p>
  </blockquote>
  
  <p>That would do the trick, <strong>but</strong> I would like to reply to the client depending on the success or failure of the command (to have a kind of REST - like interface).</p>
  
  <p>How could I do that ?</p>
  
  <p>Thanks!</p>