New test passwords
[CGIscriptor.git] / StartServlet
blob6276cadbbbf7d97e5c19e20ae8468a79ae00ec32
1 #! /bin/sh
3 # Create a new link to the default perl installation
4 #test -r perl || ln -s `which perl` perl
6 # If the above doesn't work, try this instead
7 # test -r perl || ln -s `whence perl` perl
9 # License for use and disclaimers
11 # CGIscriptor merges plain ASCII HTML files transparantly
12 # with CGI variables, in-line PERL code, shell commands,
13 # and executable scripts in other scripting languages.
15 # This program is free software; you can redistribute it and/or
16 # modify it under the terms of the GNU General Public License
17 # as published by the Free Software Foundation; either version 2
18 # of the License, or (at your option) any later version.
20 # This program is distributed in the hope that it will be useful,
21 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 # GNU General Public License for more details.
25 # You should have received a copy of the GNU General Public License
26 # along with this program; if not, write to the Free Software
27 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 # Start servlet, channel STDERR to pid.log use CGIscriptor directory when
30 # it exists. Use port 8001
31 if ( test -r ./CGIservlet.pl ); then
32 ./CGIservlet.pl $@ 2>pid.log&
33 elif ( test -r ./CGIscriptor/CGIservlet.pl ); then
34 ./CGIscriptor/CGIservlet.pl $@ 2>pid.log&
35 else
36 echo 'Neither ./CGIservlet.pl nor ./CGIscriptor/CGIservlet.pl found' 2>pid.log
37 echo 'Neither ./CGIservlet.pl nor ./CGIscriptor/CGIservlet.pl found' >&2
40 # Use this command to start CGIservlet with access restricted
41 # to "localhost" requests (i.e., the machine running the servlet)
42 # ./CGIservlet.pl -r 2>pid.log&