#!/bin/sh TCPPort=42001 tcpclient $1 $TCPPort sh -c " echo $2 >&7 exec cat <&6" # Wait for the user to punch the enter key. I did this because I run the sript # under xterm which exits immediatly and doesn't give you a chance to read the data. exec head -n1 > /dev/null