Jump to content

Some script questions


zaro

Recommended Posts

The script in question will crawl through a directory and grabs 2 matching files that are in each directory(still working on this part).  By matching files I mean, test.dat and test.csv, once it has these files it preforms some actions on the .dat taken from the .csv file and outputs a new updated .dat file.  It works perfectly for 1 set of matching files, I have to copy in the 2 file names each day and run the script anywhere from 1 to 30 times depending on how many data files were added.

 

Now my questions are whats the best way to execute this script with variable file names 30 times, the data files have roughly 30k lines of data each which is reprocessed before be exported.  My thoughts were to created a multithreaded script and just pass each set of file names, I'm on windows box and php doesn't preform mutlithreaded well on windows.  I'm thinking that running the script back to back in a loop structure would take to long.

 

 

-Zaro

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.