summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/spam.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/spam.sh b/tests/spam.sh
new file mode 100755
index 0000000..3508c2f
--- /dev/null
+++ b/tests/spam.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ $# -ne 2 ]; then
+ echo "Usage: $0 <ip> <port>"
+ exit 1
+fi
+
+while true; do
+ exec 3<>/dev/tcp/$1/$2
+ echo "test" >&3
+done