Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Processing files in remote machine

by Anonymous Monk
on Jan 10, 2013 at 04:31 UTC ( #1012586=perlquestion: print w/ replies, xml ) Need Help??
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

Comment on Processing files in remote machine
Re: Processing files in remote machine
by vinoth.ree (Parson) 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 salva (Monsignor) 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!

Re: Processing files in remote machine
by Corion (Pope) 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' "; }; ...

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2014-09-18 22:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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











    Results (125 votes), past polls