Хочу сабж.
Сделал так:
while true ; do nc -l 80 < index.html ; donewhile true; do { echo -e "HTTP/1.1 200 OK\r\n"; cat index.html; } | nc -l 80; doneХочу сабж.
Сделал так:
while true ; do nc -l 80 < index.html ; donewhile true; do { echo -e "HTTP/1.1 200 OK\r\n"; cat index.html; } | nc -l 80; done


