Minimal web server using netcat

Try this: while true ; do nc -l -p 1500 -c ‘echo -e “HTTP/1.1 200 OK\n\n $(date)”‘; done The -cmakes netcat execute the given command in a shell, so you can use echo. If you don’t need echo, use -e. For further information on this, try man nc. Note, that when using echo there is … Read more