We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

EE Cron set to run scripts?

Development and Programming

yassiryahya's avatar
yassiryahya
33 posts
17 years ago
yassiryahya's avatar yassiryahya

I have this php script that basically import csv files into MYSQL and then delete the csv files. Is there anyway for me to set EE Cron to run this scripts say, like every 15 minutes?

Or is there another plugin that I should use?

Thanks

       
ms's avatar
ms
274 posts
17 years ago
ms's avatar ms

Remember: the EE Cron plugin is not a true cron, but depends on loading the actual page containing the tag. So, if you can’t statistically guarantee that the page containing the cron tag is visited (by users/bots/whatever) every 15 minutes, your 15 minute timeframe would fail. (Independent from the question if you could use the tag to call your script.)

Therefore, I would not use the EE cron for thus a job, instead either use a regular cron job or - if not available to you - google for external cron services. That would even save you the troubles of making the script accessible for EE cron.

       
yassiryahya's avatar
yassiryahya
33 posts
17 years ago
yassiryahya's avatar yassiryahya
Remember: the EE Cron plugin is not a true cron, but depends on loading the actual page containing the tag. So, if you can’t statistically guarantee that the page containing the cron tag is visited (by users/bots/whatever) every 15 minutes, your 15 minute timeframe would fail. (Independent from the question if you could use the tag to call your script.) Therefore, I would not use the EE cron for thus a job, instead either use a regular cron job or - if not available to you - google for external cron services. That would even save you the troubles of making the script accessible for EE cron.

Thanks for clearing that one up! By any chance you have any personal recommendations? 😊 Will google for alternatives right away!

Thanks again

       
ms's avatar
ms
274 posts
17 years ago
ms's avatar ms

Sorry, I can’t provide any recommendations … my servers allow me to use cron natively. I had to find an external solution once for a client, but that is years ago.

       
Paul Burdick's avatar
Paul Burdick
480 posts
17 years ago
Paul Burdick's avatar Paul Burdick

An actual crontab is probably your best bet. Otherwise, you will have to find some other automated solution that you can guarantee to hit that script every fifteen minutes.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.