User Tools

Site Tools


en:cronjob

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:cronjob [2015/05/29 11:09] (current)
Line 1: Line 1:
 +====== CRON jobs ======
 +
 +===== What is cron and do we need it =====
 + 
 +More information:​ [[http://​en.wikipedia.org/​wiki/​Cron]]
 +
 +===== Why do we need it =====
 +==== Yesterday weathervalues ====
 +Some weather programs do not have yesterday weather values and also have no built in scheduled tasks.
 +In our case we have to find a solution for WSWIN, WVIEW and Weatherlink.com
 +
 +Because we need those yesterday values we run a smal script on our webserver at 23:50 (11:50 PM) to
 + copy the min max values of today into a file which will be used shrotly (after 24:00) as yesterdays values.
 +
 +<WRAP info>
 +The script which must be run is:  %%www.yourwebsite.com/​%%**weather27/​yesterday.php** </​WRAP>​
 +
 +So we need a cronjob at  23:50 every day to call %%www.yourwebsite.com/​%%**weather27/​yesterday.php** in a browser.
 +
 +====  NWS / Curly multiple weather-warnings areas  ====
 +The number of regions to retrieve weather warnings from is "​unlimited"​ when using Curly-scrips. ​
 +The response time becomes unacceptable when using to much areas.
 +
 +Here you find the readme Curly wrote: ​ %%www.yourwebsite.com/​%%**weather27/​usa/​nws-alerts/​NWS-alerts_read_me.html**
 +
 +We need a cron-jon to retrieve the weather warnings so that visitors do not have to wait for that.
 +
 +<WRAP info>
 +The script which must be run is:   ​%%www.yourwebsite.com/​%%**weather27/​cron_job.php** </​WRAP>​
 +
 +
 +This cronjob should run every 5 - 15 minutes and call our script ​ %%www.yourwebsite.com/​%%**weather27/​yesterday.php** in a browser
 +
 +===== How to run a cron job =====
 +==== If you use a Linux system ====
 +Most WVIEW users could use the cron faciliteits of their Linux system they are runnig WVIEW on.
 +==== Your PC or Mac is available 24/7  ====
 +=== Windows Task Scheduler ===
 +EN: You should use google to find recent instructions and how-to, example [[https://​www.drupal.org/​node/​31506]]
 +
 +{{ :​cron_mac.jpg?​link&​300|}}
 +=== Mac ===
 +A simple and free app. You set the time, copy the URL and specify which browser.  ​
 +That's all. [[http://​macscheduler.net/​]] ​
 +
 +----
 +
 +==== Use your webhosting company ====
 +{{ :​cron-provider.jpg?​link&​300|}}
 +Hoster such as godaddy have simple cron facilities, which are usable. Others excel and allow multiple cronmjobs at have very simple tools to define them.
 + 
 +Check the help files /support forum of your hosating comapny
 +----
 +==== cron providers ====
 +{{ :​cronjob_de.jpg?​link&​300|}}
 +Or you can use free (or nearly free) specialized providers such as:
 +
 +[[https://​www.cronjob.de/​preise.php]]
 +
 +[[https://​www.setcronjob.com/​prices]]
  
en/cronjob.txt · Last modified: 2015/05/29 11:09 (external edit)