On 6/13/07, Lakshmi Sailaja <[EMAIL PROTECTED]> wrote:
You are right that I am trying to connect to a Windows m/c from a Solaris
server.
But when I used the below code, it gets connected but I am having problem
displaying the output:
my $telnet = Net::Telnet->new(HOST => "$server",
Dump_log => "telnetdump.txt",
PROMPT => '/[>]/');
$telnet->login('user', 'pass');
$telnet->cmd('ls -l >lsop.log');
after running this program, lsop.log is being created but I don't see
anything in it.
If I can display the output, I am all good. Please suggest!!!
Thanks in Advance.
Regards,
Lakshmi
952-833-1220
Try using
$telnet->cmd('dir > lsop.log');
There is no ls command in DOS.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/