How Exactly do Cron Jobs Work?

andrewng
edited November -1 in Support Forums

I'm not sure how cron jobs work. What I have seen in the past is you provide a pathname to a script. However, the cron job tool on cpanel asks me to give a url.

Does the cron job may an http request to that url?

If so, what kind of request is it (GET, POST, etc.)?

Comments

  • Admin
    edited November -1

    I'm not sure how cron jobs work. What I have seen in the past is you provide a pathname to a script. However, the cron job tool on cpanel asks me to give a url.

    Does the cron job may an http request to that url?

    If so, what kind of request is it (GET, POST, etc.)?

    You have to provide path to the script, e.g, http://yourdomain.com/cronjob.php
    crobjob.php is the script you want to run.

    Cronjobs are time-based, they will not be triggered by get/post from there.