> I just get empties values,,, I already tried the code lines bellow but > it is not working... I have too much to do in my script.. but since I > don’t get to make it works I can t step forward, I m working on it since > 3 weeks ago but I just fails in all my tries :-( do u have any idea what > I d=could do ?? as I told you I m using the module telnet.pm. I already > have that website u sent me the link ( and I thanks u for that but all > my tries are failing.. > # > ------------------------------------------------------------------------ > - > my @output = $telnet->cmd("cleartool lsactivity -s -view $viewDesenv"); > > -or- > > my @output; > my $result = $telnet->cmd('String' => "cleartool lsactivity -s -view > $viewDesenv", 'Output' => [EMAIL PROTECTED]); >
Can you post the full script that you are using? I assume you are able to telnet to the remote machine using a standard telnet client, and you are infact supposed to be using 'telnet' as opposed to 'ssh' or some other remote command sending protocol type thingie? I also assume when you are able to telnet to the remote host, that cleartool is actually installed, in the path, executable, $viewDesenv is set on the local side, and that that command actually does produce something on stdout (not stderr)? And that you have read the section on M$ telnet: http://search.cpan.org/~jrogers/Net-Telnet-3.03/lib/Net/Telnet.pm#Connecting_to_a_Remote_MS-Windows_Machine Specifically the sentence: "Connecting Net::Telnet to one of these false TELNET servers makes your job of parsing command output very difficult." Are you sure you aren't using one of these "false" telnet servers? Have you tried messing with the 'input_log'/'dump_log' attributes/methods to provide us with debugging information also? You will need to help us, help you... http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]