tor_multipath_voip/scripts/container/sync_barrier_donar
2020-02-05 20:46:28 +01:00

12 lines
255 B
Bash
Executable file

#!/bin/bash
sleep 1
echo "sync_barrier_start"
nc -u 127.13.3.7 5000 --sh-exec 'while true; do sleep 1; echo a; done' &
CAPTURE=$!
nc -ul 127.0.0.1 5000 --exec /bin/true
echo "sync_barrier_release"
sleep 1
kill $CAPTURE
sleep 10
echo "sync_barrier_done"