Hi all,
I have a couple of php scripts that I need to run via CRON. I have them running fine and currently running every 15 minutes. I'll quickly explain what they do:
One of them monitors an email address. If it finds an email with an image attached, it stores it in a specific folder;
Second one checks that specific folder and then moves & renames the image to a naming convention I need, to another folder.
Now it's a long story (which I won't bore you with) why I need both scripts running. Trouble is, if more than one image is emailed in in between the jobs running, when they run, the first job does what is should, but then the second job only picks up the first image and then deletes anymore images.
So that's what the jobs do...My questions are:
Would it be ok to run these jobs say every 20 seconds? - Would it hammer my server too much?
I'm thinking of modifying the jobs to loop 4 times every 20 seconds and then just setting the CRON to be every minute...Would that be a better way?
Thanks for any help/advice.



LinkBack URL
About LinkBacks
Reply With Quote
I have to say, I tend to agree with what you say about fixing the scripts! However, in the short term, I think I may just give the 20 second CRON a go!





