The netpipes package is a collection of utilities that makes TCP/IP streams usable in shell scripts.