With windows platform, there is also a similar way, you can use psexec utility from sysinternals, now acquired by Microsoft - http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
I had done a lot remote management with it and, of course, perl:) -----Original Message----- From: kevin liu [mailto:lwtben...@gmail.com] Sent: Friday, April 10, 2009 10:13 To: Amit Saxena Cc: Perl Beginners Subject: Re: How to login from one system (A) into remote system (B) and do a ping to the third system (C) with Perl and CGI ! I think this depends on what kind of OS you are using. If you are working between Unix like operating system, you could directly use ssh, even remsh to log on to another system. On Thu, Apr 2, 2009 at 1:04 AM, Amit Saxena <learn.tech...@gmail.com> wrote: > Hello everybody, > > I need to write a Perl CGI script to login from one system (A) into remote > system (B) and do a ping to the third system (C). > > As of now, I have successfully written the code in Perl CGI to Ping any > host > / IP using built it Perl Net::Ping module. > > However I am not sure how to login (preferably using ssh) into a remote > system using Perl and execute our ping script over there. > > I searched on CPAN and found one module > Net::SSH::Perl< > http://search.cpan.org/~turnstep/Net-SSH-Perl-1.34/lib/Net/SSH/Perl.pm<h ttp://search.cpan.org/%7Eturnstep/Net-SSH-Perl-1.34/lib/Net/SSH/Perl.pm> > >which > seems to allow login into remote system and execute commands over > there. However I am looking for any built-in module for the same as the > administrators will not allow external modules to be installed in > production > environment. > > Thanks & Regards, > Amit Saxena > -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/