I would like to spawn a persistent
netcat server. My command of choice is the following:
echo "bash -c \"while [ 1 ]; do nc -l -p 1111 >> check; done\"" | at now
I am wondering how I can get the PID of the process created by
at so that I can easily put the server to sleep when needed.