| jochen.michlig@bluewin.ch 2005-11-07, 9:55 pm |
| Hi,
I have a problem starting tomcat with the following cgi script....
#!/usr/bin/perl
use strict;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
my $cgi = new CGI;
my $cmd = $cgi->param("cmd");
#my $sysCall = `/opt/tomcat/bin/shutdown_DEVELOPMENT.sh &` or die $!;
my $sysCall = `/opt/tomcat/bin/startup_DEVELOPMENT.sh &` or die $!;
print "Content-type: text/html\n\n";
print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">', "\n";
print "<html><head><title>CGI-Feedback</title></head>\n";
print "<body>done: $sysCall</body></html>\n";
The problem is the following. The output of the startup.sh script is
displayed on the page but the server is not started. When calling the
shell script directly from within a shell it's running properly....
Output:
done: Using CATALINA_BASE: /opt/tomcat/DEVELOPMENT Using CATALINA_HOME:
/opt/tomcat Using CATALINA_TMPDIR: /opt/tomcat/DEVELOPMENT/temp Using
JAVA_HOME: /opt/j2sdk1.4.2_01
any help appreciated.
thanx
jochen
|