tor_multipath_voip/scripts/container/sync_barrier_donar

10 lines
246 B
Text
Raw Normal View History

2020-02-05 19:46:28 +00:00
#!/bin/bash
sleep 1
echo "sync_barrier_start"
2020-02-05 22:05:20 +00:00
nc -v --udp 127.13.3.7 $2 --sh-exec 'while true; do sleep 1; echo a; done' &
nc -v --udp --listen 127.0.0.1 $1 --sh-exec 'killall -9 nc'
2020-02-05 19:46:28 +00:00
echo "sync_barrier_release"
sleep 10
echo "sync_barrier_done"