<html><head></head><body><div>I recall there was a way to do this by basho but wondering if there are new alternatives recently.<br><br>Basically the example is a simple one, open_port({spawn, "<span>curl -L "http://releases.ubuntu.com/18.04.1.0/ubuntu-18.04.1.0-live-server-amd64.iso?" --progress-bar -o /dev/null</span>"}) now kill the process, close the port, or kill the emulator.  The curl process keeps running.  I believe it was when the port closes, stdin/stdout closes for the process, and the work around was to wrap the process in a bash script that would detect stdin/out closed, and terminate the process it wrapped.<br><br>Any thoughts on this, or perhaps help finding that bash script again?</div><div class="ydp59ffa45byahoo-style-wrap" style="font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 13px;"></div></body></html>