• 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:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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
 
permaculture is largely about replacing oil with people. And one tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic