repo.or.cz
/
newgopher.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Make fakeserver return tab-separated types.
[newgopher.git]
/
fakeserver.sh
blob
8cbbba46298da2a400edbf4800aee116ba9e180f
1
#!/bin/bash
2
3
echo
"Poor man's 'inetd', works on netcat"
4
5
RUN
=
gopher.pl
6
PORT
=
32070
7
8
while
true
;
do
9
nc
-l -p
${PORT}
-e
${RUN}
10
sleep
1
11
done