Daniel Choong writes ..

>okie, this probably sounds very simple but i dunno how
>to do it. i just learnt perl. i need some tips on how
>to use a perl script to automate the updating of files
>on multiple servers. i am trying to use ftp but i do
>not know how to write the script to read the output
>from ftp, then send the username and passwd, then
>detect the prompt and send the commands. i suppose
>there's a simple way to do that but i am lost.
>anyone knows how to do that? i tried using IPC::Open2
>but i dunno how to use it properly.


for FTP take a look at the Net::FTP module .. it should be part of the
standard distribution .. you can view the help with the perldoc utility
which is installed with Perl .. type the following at a command prompt

  perldoc Net::FTP

if it's not installed then you'll find as part of the libnet bundle - here

  http://search.cpan.org/search?dist=libet

the examples in the documentation make any examples here redundant

-- 
  jason king

  In New York, a fine of $25 can be levied for flirting. This old law
  specifically prohibits men from turning around on any city street and
  looking "at a woman in that way." A second conviction for a crime of
  this magnitude calls for the violating male to be forced to wear a
  "pair of horse-blinders" wherever and whenever he goes outside for a
  stroll. - http://dumblaws.com/

Reply via email to