Hi again,
(this thread follows my previous post yesterday).
I have tried to connect to a QNX 4.24 node using the Perl Net::Telnet
module
and it works !!
This Ruby code fails with a timeout while trying to connect
(even with a greater timeout value (400)) on a QNX 4.24 node :
$session = Net::Telnet.new( {'Host' => '192.1.1.101', 'Timeout' => 10,
"Telnetmode" => true } )
p serverResponse = $session.login('<skip>', '<skip>')
p $session.cmd( 'uname -a' )
It fails in the login part (timeout).
This Perl code works :
use Net::Telnet;
my $username="<skip>";
my $passwd="<skip>";
my $HOST="192.1.1.101";
my $t = new Net::Telnet (Timeout=>undef) or die "Can't connect : $!";
$t->open($HOST);
$t->login($username, $passwd);
my @lines = $t->cmd("uname -a");
print join(' ',@lines);
I am quite lost with this. It would be a pity if i
would have to switch to Perl in this project bc of that
simple thing.
Thank you for your help.
Alexandre Abreu