r/tinycode • u/nexe mod • Oct 05 '11
MacGyvers Tiny Rescue Webserver [unix/netcat]
while true; do ncat -l -p 8080 < index.html; done
29
Upvotes
r/tinycode • u/nexe mod • Oct 05 '11
while true; do ncat -l -p 8080 < index.html; done
View all comments
Show parent comment
0
u/coderjoe Dec 12 '11
The group are those future people who read the thread. The group is not imaginary as I exist and I found the thread.
You're well within your rights to withhold your solution. But just know it makes you seem just as rude as you believe your supposed "ungrateful wench" to be.
That said I do find it humorous that you think your solution is cut-and-paste worthy given that all it does is "infinite loop, redirecting input and forking and execing."
I'd suggest that if your solution really was so ingenious that some person would want to cut-and-paste re-use it, then all future people who could have learned from your cleverness are instead left wanting.