Jump to content

[Solved] Frequency Of The Cron Jobs


kotha

Recommended Posts

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.

 

Link to comment
Share on other sites

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-

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Hi All,

Thanks for all your valuable inputs.

 

@Krydos

No 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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

  • 2 weeks later...

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.   Paste as plain text instead

  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...