Jump to content

Recommended Posts

Posted

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.

 

Posted

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?

Posted

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.

Posted

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.

Posted

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?

Posted

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.
  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...