Execute nc command with timeout (option)

inspired by http://www.pixelbeat.org/scripts/timeout
sleep one second after poke the pipe