How about

#!/bin/ksh
nc -l localhost 1234 |&
exec 0<&p 1>&p
# Rest of the script here.

This syntax is pretty new to me so I'm not sure of pros and cons.

Reply via email to