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