Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi perl people, I need suggestions as to how to go about making a perl script on one machine access files on another machine.my code is supposed to move the files from one location to another.any help would be appreciated. Thanks SManicks
  • Comment on need suggestions as to how to run a script to acess and move files stored on a server.

Replies are listed 'Best First'.
Re^2: need suggestions as to how to run a script to acess and move files stored on a server.
by MidLifeXis (Monsignor) on Dec 03, 2008 at 18:16 UTC

    rdist, rcp, scp, ftp (with automation script), NFS mount, SMB mount, AFS mount, etc, etc, etc.

    What tools do you have at your disposal?

    Update: Sorry, should have posted under OP, not this one.

    --MidLifeXis

      ..., HTTP, WebDAV, ...

        ... UUCP, Bitnet transfer routines, ...

        --MidLifeXis

Re: need suggestions as to how to run a script to acess and move files stored on a server.
by kennethk (Abbot) on Dec 03, 2008 at 18:13 UTC
    A little more information would be helpful, such as the OS on each machine and how you intend to move the files. A straight forward solution would be to use Net::FTP, but there are certainly many solutions available to you freely on CPAN.
Re: need suggestions as to how to run a script to acess and move files stored on a server.
by lakshmananindia (Chaplain) on Dec 04, 2008 at 06:36 UTC
    You can use scp command to do that. scp file(s) username@host