I'm running CGI program (written using perl) with
Tomcat.
Cgi program written in perl has a telnet operation. It is trying to connect to a port on a remote host. When i run the perl script as a standalone, it works perfectly. when i try to run the same script with tomcat server i am getting the following error.
Mar 31, 2005 9:37:21 PM org.apache.catalina.core.ApplicationContext log
INFO: cgi: runCGI (stderr)
roblem creating socket: Unknown error at C:/Perl/sit
e/lib/AOLserver/CtrlPort.pm line 125
ctrlport.pm is the perl module and line 125 in the module is my $t = Net::Telnet->new(%options);
METHOD
############################################################
sub new {
############################################################
my ($class, @options) = @_;
my %options = (
Timeout => 20,
Port => '3456',
Host => 'localhost',
Prompt => '/Ok/',
User => '',
Password => '',
@options);
Any suggestion or solution ?
Thanks.
Sri