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