#! /bin/sh cd /root/uinput || exit 1 exec > LOG.out 2> LOG.err while :; do ./snc HOST PORT -cmd ./uinput < /dev/null sleep 60 done &