File: cwtest.sh

package info (click to toggle)
cwdaemon 0.9.5-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 888 kB
  • sloc: sh: 3,535; ansic: 1,835; makefile: 51
file content (12 lines) | stat: -rwxr-xr-x 180 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

old_tty_settings=$(stty -g)
stty -icanon
trap 'stty "$old_tty_settings"; exit 0' INT

echo "Press (CTRL-C) to interrupt..."

while true; do
  nc -u localhost 6789
done