This is a card in Dave's Virtual Box of Cards.
CGI Scripts
Created: 2022-07-25
Updated: 2022-09-28
I love CGI scripts. To me, they’re the shell scripts of the Web.
Show me a better way to share utilities on a LAN than a local webserver. You can’t. Nothing is better.
Show me an easier GUI than a quick <form> interface rendered in a browser from a CGI Script. You can’t unless you know something like TCL and Tk.
Whether you have a publicly-accessible website or not, CGI scripts are the fast and easy way to do all of the amazing stuff people were excited about in the late 1990s. You can still do all of those things!
I currently recommend Ruby for this purpose.
And testing them locally.
Example: todo-cgi