#! /usr/bin/ksh ########################################################################## # Shellscript: cgitemplate.ksh - CGI script template # Version : 1.2 # Author : Heiner Steven # Date : 2001-08-26 # Requires : ksh, urlgetopt # Category : CGI # SCCS-Id. : @(#) cgitemplate.ksh 1.2 04/02/18 ########################################################################## # Description # # Note # o Needs the following, non-standard scripts and prograrms: # urlgetopt (http://www.shelldorado.com/scripts/cmds/urlgetopt) ########################################################################## PN=${0##*/} # Program name VER='1.2' Debug=false #Debug=true # Append directories with local commands to the command search path: PATH=$PATH:/home/heiner/cmds export PATH function Usage { $iscgi && print "" print -u2 "$PN - short description, $VER" $iscgi && print "" exit 1 } function Msg { $iscgi && print ""