Jump to content

[Solved] Cron Jobs


Dimas Putra

Recommended Posts

Hello Helionet!

 

Well, I need more numbers of Cron Jobs execution allowed to every two hours. I built little application for automatically update a twitter account status that contains newest local weather information. I beleave it just take little memory just as my public page. Please :D

 

Thank You!

Link to comment
Share on other sites

This support request is being escalated to our root admin.

 

Let me make a suggestion if your application is written in php. Use a php include to run the update script so that everytime somebody visits your page the weather gets updated. Using this method instead of a cron job.

 

Link to comment
Share on other sites

This support request is being escalated to our root admin.

 

Let me make a suggestion if your application is written in php. Use a php include to run the update script so that everytime somebody visits your page the weather gets updated. Using this method instead of a cron job.

 

Well, maybe that's a good idea. But i don't have much traffic to do that. The weather gets updated every 2 to 4 hours, so I'd rather use cron jobs, since I'm not always get online to run the script every hours.

 

How do I know when it's accepted?

 

This support request is being escalated to our root admin.

 

Let me make a suggestion if your application is written in php. Use a php include to run the update script so that everytime somebody visits your page the weather gets updated. Using this method instead of a cron job.

 

Link to comment
Share on other sites

Suggestion:

 

create a php script that checks if it has been longer than two hours (or whatever) since it has last called the update script. MAKE SURE THAT IT DOES NOT RETURN ANYTHING TO THE BROWSER.

 

<?php 

if((file_get_contents("lastcalled.txt) - time() ) >50) {

include "update_script.php";

}


?>

 

Ok, then just put an image link to that script in your twitter signature, your helionet signature, or whatever. Then, that script will be called often, but it won't use up any bandwidth, (or a minuscule amount).

 

<img src="http://absolute/path/to/your/script.php"></img>

 

Problem solved.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...