Your Ad can be there
+ Post New Thread
Results 1 to 2 of 2

Thread: How to setup a cronjob

  1. #1
    Administrator
    Join Date
    Mar 2013
    Posts
    2,653

    How to setup a cronjob

    Hi, if You need to setup an cronjob on linux hosting. It might be cpanel, linux shell, here is how the command to run url in cron can look like:

    curl http://urlxyxyxy
    wget -O http://urlxyxyxy /dev/null
    wget -O – -q http://urlxyxyxy >/dev/null 2>&1

    (wget url alone would cause that website be downloaded into /home/user/ as a file! add -q to wget if you dont want to get email report of particular cronjob, q means quiet, >/dev/null 2>&1 will cause no email be sent too, also no file created)

    Every 5 minutes cronjob to run some URL:

    */5 * * * * curl http://example.com/check/

  2. #2


    Is this useful / helpfull? Yes | No
    If you are using cpanel then best and easy way to create cronjob is through cpanel:
    > Login to cpanel >> Cronjob

    You just have to use command to create cron job. You have to use below command to create cron job.
    crontab –e

    You can check complete steps to create cron job.

+ Post New Thread

Similar Threads

  1. WHMCS Cronjob 100% CPU, hosting suspended as a result
    By Fli in forum WHMCS (billing system)
    Replies: 0
    Last Post: 07-06-2017, 10:33 AM
  2. Replies: 1
    Last Post: 06-03-2016, 12:14 PM
  3. What are Cronjob linux commands to run PHP file?
    By Fli in forum General Hosting Discussion
    Replies: 1
    Last Post: 01-11-2015, 08:20 AM
  4. Replies: 0
    Last Post: 08-15-2013, 03:08 PM
  5. Shell Script - Cronjob for mysql backup?
    By Fli in forum MySQL, Apache, PHP
    Replies: 0
    Last Post: 05-24-2013, 10:10 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
 Protected by : ZB BLOCK  &  StopForumSpam