Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: copying files from a number of remotes to another central machine

by adamsj (Hermit)
on Jul 19, 2001 at 21:48 UTC ( #98168=note: print w/ replies, xml ) Need Help??


in reply to copying files from a number of remotes to another central machine

I tend to build from scratch, so I'd say look at Net::FTP to get the files from the machines. Script your session so that it names the incoming files in a manner that represents where they came from.

Loop through the machine names any way you want--there's probably a way to use map.

Update: You can tell I think in UNIX, can't you?

adamsj

They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen


Comment on Re: copying files from a number of remotes to another central machine
Re: Re: copying files from a number of remotes to another central machine
by RayRay459 (Pilgrim) on Jul 19, 2001 at 22:15 UTC
    I'm not sure if using Net:FTP will be the best idea for connecting to my machines. They are production boxes. and i am also a novice in perl. :) Ray
      I think you could distribute a script to all the remotes that ftp'ed the file back to the central server. Of course, you might be able to schedule a simple batch script to do that-- as opposed to having to put perl on all those machines.

      Or assuming you have mounted the central server as a drive on all the remotes, instead of FTPing the file you just copy it over. Making sure to perhaps change the filename so there aren't collisions, or giving each remote its own subdir on your server.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://98168]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2014-09-23 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (208 votes), past polls