develooper Front page | perl.beginners | Postings from October 2008

Re: Help required in writing a script

Thread Previous | Thread Next
From:
Chas. Owens
Date:
October 23, 2008 09:58
Subject:
Re: Help required in writing a script
Message ID:
58ce48dc0810230958k58838199o34dfac2d836a2612@mail.gmail.com
On Thu, Oct 23, 2008 at 10:49, monnappa appaiah <monnappa22@gmail.com> 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.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About