Execute nc command with timeout

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

PASSED