diff options
Diffstat (limited to 'src/usr.bin/nc/scripts/dist.sh')
-rw-r--r-- | src/usr.bin/nc/scripts/dist.sh | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/usr.bin/nc/scripts/dist.sh b/src/usr.bin/nc/scripts/dist.sh deleted file mode 100644 index f9519c87a6..0000000000 --- a/src/usr.bin/nc/scripts/dist.sh +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | # $OpenBSD: dist.sh,v 1.2 2001/01/29 01:58:12 niklas Exp $ | ||
3 | |||
4 | ## This is a quick example listen-exec server, which was used for a while to | ||
5 | ## distribute netcat prereleases. It illustrates use of netcat both as a | ||
6 | ## "fake inetd" and a syslogger, and how easy it then is to crock up a fairly | ||
7 | ## functional server that restarts its own listener and does full connection | ||
8 | ## logging. In a half-screen of shell script!! | ||
9 | |||
10 | PORT=31337 | ||
11 | |||
12 | sleep 1 | ||
13 | SRC=`tail -1 dist.log` | ||
14 | echo "<36>elite: ${SRC}" | ./nc -u -w 1 localhost 514 > /dev/null 2>&1 | ||
15 | echo ";;; Hi, ${SRC}..." | ||
16 | echo ";;; This is a PRERELEASE version of 'netcat', tar/gzip/uuencoded." | ||
17 | echo ";;; Unless you are capturing this somehow, it won't do you much good." | ||
18 | echo ";;; Ready?? Here it comes! Have phun ..." | ||
19 | sleep 8 | ||
20 | cat dist.file | ||
21 | sleep 1 | ||
22 | ./nc -v -l -p ${PORT} -e dist.sh < /dev/null >> dist.log 2>&1 & | ||
23 | sleep 1 | ||
24 | echo "<36>elite: done" | ./nc -u -w 1 localhost 514 > /dev/null 2>&1 | ||
25 | exit 0 | ||