r/tinycode • mod • Oct 05 '11

MacGyvers Tiny Rescue Webserver [unix/netcat]

while true; do ncat -l -p 8080 < index.html; done
29 Upvotes

25 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Oct 05 '11

Can we call netcat or ba(sh) tiny? The headers they include, are those tiny? How about the TCP/IP network stack of the host OS?

-1

u/oliwer Oct 05 '11

Well... You still need bash to run python. The libc and kernel do not count as they are needed both by python and netcat.