ctdb-tests: Don't use nc -d or -w options
[vlendec/samba-autobuild/.git] / ctdb / tests / complex / 34_nfs_tickle_restart.sh
index 6350db68c2eedbc5859e42c6a229e4e2f1966fda..2aab0614ff9b0605507b4dd8357c056de33ad85d 100755 (executable)
@@ -53,7 +53,7 @@ test_port=2049
 
 echo "Connecting to node ${test_node} on IP ${test_ip}:${test_port} with netcat..."
 
-nc -d -w 600 $test_ip $test_port &
+sleep 600 | nc $test_ip $test_port &
 nc_pid=$!
 ctdb_test_exit_hook_add "kill $nc_pid >/dev/null 2>&1"