The telnet server running on my windows machine is the Microsoft telnet server (which comes from windows).
As suggested when I used 'dir', I am able to see the content in lsop.log. 'ls' is an exe that is obtained with some free-ware software. But I don't see any output if I use 'ls'. But isn't there a way to get the output from ls??? The reason that I am asking this is that I will have to call one more exe (similar to ls, obtained from free-ware) for my Perl program and that is not running either? Thanks & Regards, Lakshmi 952-833-1220 -----Original Message----- From: Chas Owens [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 12:35 PM To: [EMAIL PROTECTED] Cc: beginners@perl.org Subject: Re: Prompt in Net::Telnet 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/