Debian Codegraph @

examples/example.sh

raw
1 #!/bin/sh
2
3 old_tty_settings=$(stty -g)
4 stty -icanon
5 trap 'stty "$old_tty_settings"; exit 0' INT
6
7 echo "Press (CTRL-C) to interrupt..."
8
9 while true; do
10 nc -u localhost 6789
11 done
12