Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

How do I gather files from remote machines?

( #116681=categorized question: print w/ replies, xml ) Need Help??
Contributed by Zombie Darkness Productions on Oct 04, 2001 at 16:48 UTC
Q&A  > network programming


I need to gather files from multiple remote machines, preferably using TCP/IP or some other method. The files will most likely not be on any share, so is there a way to go about this? Connecting to Windows and *nix machines is a must though. Glen

Answer: How do I gather files from remote machines?
contributed by projekt21

Your problem is not the client machine, as there are many Perl-Modules out there doing the dirty work for you (including Net::FTP).

Your problem is the server side: you need one or more protocols there to make your files accessible to your client. If you manage to run FTP (or HTTP, or whatever) on your *nix and Windows machines and manage to access those files with standard client software, the perl stuff to automate that all is quite simple (if you read your documentation).

If you have chosen one or more protocols for your servers, managed to run them and still have trouble with your client side perl, come back and you will be helped.

Answer: How do I gather files from remote machines?
contributed by ariels

If your hosts support FTP, you can script interactions using Net::FTP (CPAN).

Other protocols exist, of course. If you administer the machines, rsync is a distinct possibility.

Answer: How do I gather files from remote machines?
contributed by projekt21

It is the same problem. The difference is that now your server must act as a client and your clients must act as servers. Install some FTP server on your clients and use Net::FTP as client on your server (uuuh, confusing). Otherwise you need to run some kind of upload-script on each client if this suits better.

Answer: How do I gather files from remote machines?
contributed by Zombie Darkness Productions

Hmm... actually, no. I need the server to gather files from the client. The code is run on the server side, hopefully in attempts to gather the files from the client, without much effort. It's basically for a stats gathering script, where the files are pulled from the clients (via internal network I would guess). Ideas?


Please (register and) log in if you wish to add an answer

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others contemplating the Monastery: (9)
    As of 2016-08-25 19:24 GMT
    Find Nodes?
      Voting Booth?
      The best thing I ever won in a lottery was:

      Results (362 votes). Check out past polls.