samedi 10 janvier 2015

How do I create a Perl script to call other Perl scripts on other hosts?


Vote count:

0




I've got a problem at work i need help with. A Perl program currently takes 4 hours parsing several huge LOG files over 2 gigs and then creating 6 or 7 tab-separted files for import into excel. I'm trying to cut the time down to 2 hours and the only way to do this is to create the files in parallel rather than sequentially as it is now.


So i'm in the process of chopping this Perl script into 6 or 7 other Perl scripts, which will be run on other hosts, but still called and initiated from a single Perl script. I want this Perl script to:


1) FTP or SSH the LOG files to 6 or 7 hosts 2) tell the Perl Scripts on these hosts to execute after receiving the LOG files 3) After those scripts are done, download the outputted tab-separated files to my machine.


I think this is the best way to go about this, but I'm not sure, there may be a better way to do it? If this is the best way to do it, i've never written a Perl script to call another one on another machine, and don't know the best way to go about doing this.


Any help would be greatly appreciated!! Thanks!



asked 30 secs ago







How do I create a Perl script to call other Perl scripts on other hosts?

Aucun commentaire:

Enregistrer un commentaire