Skip to content

dotkwame/awk-webserver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Simple webserver written in gawk

A simple webserver written in GNU awk, that supports directory listing and download of files from the directory where it is launched.

It is born as an experiment, to demonstrate the power of the awk language.

Usage

The script must be executed through a TCP wrapper.

I use this little shell script that requires socat:

while [ 1 ]; do
	socat TCP-LISTEN:8888,reuseaddr EXEC:"gawk -f webserver.awk"
	sleep 1
done 

You can then connect to the local 8888 port with your browser. Enjoy!

About

A simple webserver, written in GNU awk, that supports directory listing and download of file from the directory where it is launched

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Awk 100.0%