** Start of listing of h-sh.cgi **
#! /bin/sh
echo 'Content-type: text/html'
echo
echo ''
echo ''
echo '
'
echo ' '
echo ' Hello sh'
echo ''
echo ''
echo 'Hello World!'
echo ''
** End of listing of h-sh.cgi **
** Start of listing of h-csh.cgi **
#! /bin/csh
echo 'Content-type: text/plain;charset=us-ascii'
echo
echo 'Hello World!'
** End of listing of h-csh.cgi **
** Start of listing of h-tcsh.cgi **
#! /bin/tcsh
echo 'Content-type: text/plain;charset=us-ascii'
echo
echo 'Hello World!'
** End of listing of h-tcsh.cgi **
** Start of listing of h-ksh.cgi **
#! /usr/local/bin/ksh
echo 'Content-type: text/plain;charset=us-ascii'
echo
echo 'Hello World!'
** End of listing of h-ksh.cgi **
** Start of listing of h-bash.cgi **
#! /usr/local/bin/bash
echo 'Content-type: text/plain;charset=us-ascii'
echo
echo 'Hello World!'
** End of listing of h-bash.cgi **
Here are the directory entries for those files:
-rwx------ 1 rem user 369 Jun 26 2005 h-sh.cgi
-rwx------ 1 rem user 86 Feb 28 2007 h-csh.cgi
-rwx------ 1 rem user 87 Feb 28 2007 h-tcsh.cgi
-rwx------ 1 rem user 96 Feb 28 2007 h-ksh.cgi
-rwx------ 1 rem user 97 Feb 28 2007 h-bash.cgi
^ Note: user execute permission is needed for all CGI scripts.
^ ^ But read permission for group and other *not* needed!
Note: The Unix shell command for setting that permission on those files is:
chmod u+x h-*sh.cgi
(assuming you want all files fitting that filename template available)