For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > November 2005 > Starting tomcat server over perl cgi using startup.sh









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Starting tomcat server over perl cgi using startup.sh
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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com