#!/bin/sh DEVICE=/dev/ttyAMA0,b38400 PORT=2323 #OPTIONS="-ly -lh" #OPTIONS="-v -x" "`dirname "${0}"`"/init-coc while true; do echo "Listening on port ${PORT} for new connection requests" socat ${OPTIONS} "${DEVICE},raw,echo=0" "TCP-LISTEN:${PORT},reuseaddr" done