On Thu, Oct 23, 2008 at 10:49, monnappa appaiah <[EMAIL PROTECTED]> wrote:
> i want to run specific commands and the output of those shud be put into a
> file.
snip

So, you will need to learn to use:

Net::SSH (if you want to use keys, this is preferable) -
http://search.cpan.org/dist/Net-SSH/SSH.pm

or

Net::SSH::Expect (if you want to use passwords) -
http://search.cpan.org/dist/Net-SSH-Expect/lib/Net/SSH/Expect.pod

and

IO::File - http://perldoc.perl.org/IO/File.html
fork - http://perldoc.perl.org/functions/fork.html
wait - http://perldoc.perl.org/functions/wait.html
warn - http://perldoc.perl.org/functions/warn.html
die - http://perldoc.perl.org/functions/die.html
exit - http://perldoc.perl.org/functions/exit.html
next - http://perldoc.perl.org/functions/next.html
for(each), while, and until loops and if statements -
http://perldoc.perl.org/perlsyn.html#Compound-Statements

-- 
Chas. Owens
wonkden.net
The most important skill a programmer can have is the ability to read.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to