http://www.perlmonks.org?node_id=1012586

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

Hi perl monks, I have to run a perl script from my local machine to process some files in a remote machine.All the input files should be in remote machine and the script should be in my local machine.Is this possible in Perl?I am just a beginner.If its possible can anyone please tell how to do it.

Thanks

Replies are listed 'Best First'.
Re: Processing files in remote machine
by vinoth.ree (Monsignor) on Jan 10, 2013 at 05:26 UTC
    What you really want to do with the remote files?

    If you want to Read/write/edit remote files transparently use this module

    File::Remote

      but deep in the linked info, "Unix only"
Re: Processing files in remote machine
by Corion (Patriarch) on Jan 10, 2013 at 13:20 UTC

    You will need to provide far more context than you did.

    As a long shot, I use the following to locally process the contents of a file that is stored encrypted on a machine reachable through ssh:

    ... my $remote_file = "Storage/bar20100722.gz.gpg"; open my $fh, "ssh corion\@storage cat $remote_file | gpg2 --decrypt - +| gunzip -cd |" or die "Couldn't open '$remote_file' "; }; ...
Re: Processing files in remote machine
by salva (Canon) on Jan 10, 2013 at 09:27 UTC
    What operating systems are the machines running? (Unix, Windows, VMS, etc.)

    What remote access methods are enabled or allowed? (SSH/SFTP/SCP, Telnet, FTP, CIFS, NFS, HTTP, etc.)

      Using the OS windows. SFTP enabled.
        Are you being charged by keystroke or what?

        Come on!, give a good description of your environment and what you want to accomplish if you really want to get any useful help!