Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by adamsj (Hermit)
on Jul 19, 2001 at 21:48 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://98168]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2024-04-23 13:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found