#!./tclsh # # tiny-tcl-fcgi -- # # Tcl FastCGI example program # # Copyright (c) 1996 Open Market, Inc. # # See the file "LICENSE.TERMS" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # # $Id: tiny-tcl-fcgi,v 1.1 1997/09/16 15:36:29 stanleyg Exp $ # set count 0 while {[FCGI_Accept] >= 0 } { incr count puts -nonewline "Content-type: text/html\r\n\r\n" puts "FastCGI Hello! (Tcl)" puts "

FastCGI Hello! (Tcl)

" puts "Request number $count running on host $env(SERVER_NAME)" }