Tcl scripts / processes on a web server via CGI
Archive - Originally posted on "The Horse's Mouth" - 2009-09-27 16:08:49 - Graham EllisIf you have programs / scripts / processes written in Tcl, you can run them on your web server via the Common gateway Interface, possibly with a bit of topping and tailing to read data from a form rather than via gets commands, and to ensure that the output does get the right headers attached to it and is 'proofed' against nasty injection attacks.
In response to a query received on this subject, I've installed Tcl on our live server today so that you can run a script to try it out. The source code of the web page that you'll need to fill in is here and that submits via CGI to a Tcl script source here. You can run the demonstration here.
There's a second Tcl / CGI / web demonstration here ... that link will take you to the source code, and when you've seen what it does you can run it.
We briefly mention using Tcl on a web server on our Tcl Programming Course. I won't pretend it's a major part of the public course - it isn't - but if the subject is important to you, plan to stick around on the last day and I'll cover some more CGI stuff with you. Private courses are tailored ... and I can spend a lot longer on CGI on those courses if you wish.