kotha Posted January 25, 2017 Posted January 25, 2017 Hi Admin, I am about to deploy a simple application for my personal use which needs to trigger a cron job, which will basically execute a php script every 30 minutes. The basic purpose of the script would be to check into mysql database table, if any message is queued, if found it will send it as an email to a fixed pre-defined email address, if not found any message in the database table, the script will simply exit.Please understand that this wont be a heavy process, with too much load, neither it will take more than a mere 5 seconds at maximum to execute. Request you to grant me permission to run this cron job at ever 30 mins.Awaiting your response.
Krydos Posted January 25, 2017 Posted January 25, 2017 Heliohost users are allowed to run 2 cron jobs per day. I would recommend using a free service like https://www.setcronjob.com/ to execute your script every 30 minutes.
Byron Posted January 25, 2017 Posted January 25, 2017 I would recommend using a free service like https://www.setcronjob.com/ to execute your script every 30 minutes. SetCronJob isn't free anymore. I'm still getting the freebie but I signed up a few years ago so maybe they like me? https://support.setcronjob.com/hc/en-us/articles/221247087-Is-the-service-free-Do-you-have-free-plan-
wolstech Posted January 25, 2017 Posted January 25, 2017 I used to do it on a PC I leave running 24/7 instead Just grab a copy of wget for your OS, set job to make wget hit the page in question, send output to a log (or null if you don't care about it), done. At one point I used one called ScriptTimer Web to do this...they also went paid-only...their domain's now for sale. I guess it's not profitable to sell cron jobs?
Krydos Posted January 25, 2017 Posted January 25, 2017 I've actually considered providing a free service like setcronjob that would run from Cody and hit scripts on people's hosting accounts at whatever frequency they wanted. There wasn't really a demand for it though since there were so many free options. The issue with cron jobs usually isn't load, but how powerful shell commands can be through cron. When you access a script remotely it has all the same load and access limitations of any php or cgi script. @kotha, if you can't find a free service let me know the url of the script you want accessed every half hour and I can set it up manually for you.
kotha Posted January 30, 2017 Author Posted January 30, 2017 Hi All,Thanks for all your valuable inputs. @KrydosNo I havent found any free services yet, and for the moment I have signed up at setcronjob.com (14 days free trial).May be I would be requiring your help for manual setup soon. I will get back on this here. Thanks again.
wolstech Posted January 30, 2017 Posted January 30, 2017 I've actually considered providing a free service like setcronjob that would run from Cody and hit scripts on people's hosting accounts at whatever frequency they wanted. There wasn't really a demand for it though since there were so many free options. I could actually use something like this as well and was actually planning on asking for this limit to be removed from my account at some point... Perhaps we should see about making a custom plugin for cPanel that lets you schedule URL requests as opposed to shell commands?
Krydos Posted January 30, 2017 Posted January 30, 2017 I could actually use something like this as well and was actually planning on asking for this limit to be removed from my account at some point...Just let me know the frequency and the url of the script. Perhaps we should see about making a custom plugin for cPanel that lets you schedule URL requests as opposed to shell commands?This was the plan. It was just an idea I've been kicking around with a fairly low priority since there were so many free options that do the same thing.
kotha Posted February 13, 2017 Author Posted February 13, 2017 Dear Admin, As discussed earlier on this thread..Can you please schedule the script http://kotha.heliohost.org/sendscheduledmail.php to be executed every one minute ? Thanks and Regards in advance!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now