Content deleted Content added
Add complementary info for webcron service list, webcron features |
Remove failed verification |
||
(30 intermediate revisions by 21 users not shown) | |||
Line 1:
{{multiple issues|
{{Refimprove|date=December 2010}}
{{Primary sources|date=December 2010}}
}}
'''webcron''' is the term for a time-based [[job scheduler]] hosted on a [[web server]]. The name derives its roots from the phrase ''web server'' and the Unix daemon [[cron]]. A webcron solution{{solution-inline|date=February 2020}} enables users to schedule jobs to run within the web server environment on a [[web host]] that does not offer a [[shell account]] or other means of scheduling jobs.<ref name="WebCronDoc">[http://barebonescms.com/documentation/webcron/ WebCron product documentation], retrieved December 1, 2010</ref><ref name=":0">{{
== Overview ==
Many web hosts offer shell accounts or some sort of built-in job scheduler such as ''cron'' that makes it easy for users to schedule jobs. Such hosts run jobs as [[command-line application]]
A webcron solution is made up of two pieces. The first piece is a script that will execute the tasks that resides somewhere accessible via a [[URL]]. The second piece is to use a scheduling provider that contacts the URL of the script at regular intervals.
Before setting up a schedule with a scheduling provider, a user must set up a script that runs on the web server. Most{{which
== Scheduling Providers ==
=== Third-Party ===
There are
Some webcron service providers accept [[
▲Some webcron service providers accept [[Cron#CRON_expression|CRON expression]] in web interface to schedule the job executing time.<ref name=webcronCronExp>[http://www.easycron.com/faq/What-cron-expression-does-easycron-support EasyCron accepts cron expression]</ref>
=== Visitor Based ===
A webcron solution can be contained entirely on a web host by letting visitors trigger a webcron scheduler script on the server. For instance, this can be accomplished by using an [[img (HTML element)|'img' HTML element]] in the header or footer of the website, an [[ajax (programming)|Ajax]] call in a script or an [[HTML element#Frames|iFrame]]. When a visitor views the website, the image loads, which triggers the webcron scheduler. The webcron scheduler runs any tasks that need to run and then outputs an image so the visitor's web browser does not display a broken image on the page.<ref name="phpJobSched" /> It may alternatively start the task [[Non-blocking algorithm|asynchronously]] such that the [[HTTP]] response is not delayed.
If there are insufficient visitors to a website using visitor based webcron scheduling, then scheduled tasks will not run on time.
Line 27 ⟶ 30:
=== Remote Access ===
A remote access capable webcron solution is typically{{
Remote access usually{{
A typical{{
=== Local Access ===
A webcron solution can be used on hosts that already have cron available. This is useful{{
In the case of a remote access capable webcron solution, cron can run the client component to execute the script.
Line 45 ⟶ 48:
When using a visitor based scheduling provider, users may inadvertently provide a possible venue for denial-of-service attacks. Also, if a script is written improperly, the script may unintentionally expose information about the server.
When using a remote access scheduling provider, users usually{{
== References ==
{{Reflist}}
[[Category:Job scheduling]]
|