i need to send "test" regularly with a cronjob to 192.168.1.99:8000
currently the only solution i found was sheduling this script:
echo "test" | netcat 192.168.1.99 8000 &
kill -s SIGINT $NETCATPID
it there a more beautiful solution to echo the ctrl-c directly after "test" ?
i also don't like the "sleep", which seems to be necessary
what if sending "test" takes longer?