• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Problem creating socket... !!

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic