Wednesday, April 27, 2016


Process to set up Cron Job (Scheduled Task)

What is Cron job

                A cron job is a process to run a page automatically on server. After setting up a cron job we do not need to run it on daily basis. We can execute a page automatically at any time on daily basis by setting a up a cron job.
               Here I am going to explain the step wise step process of setting up a corn job in cpanel of godaddy server. So If you want to execute a page on daily basis at a particular time, follow below process of setting up cron job.

        To setup a cron job First login to your godaddy account then open your cpanel. now go to
Cpanel -> Section Advances -> Cron jobs menu.

          Add Cron e-mail if you want to notify by email when your cron job run.

         If you do not want to notify by email every time for an individual cron job you can redirect the command’s output to /dev/null like this: mycommand >/dev/null 2>&1

Step-3: Now add new cron job


      /usr/local/bin/php -q /home/YOUEcPuser/public_html/php_yourScript.php
if you do not want to notify by email then command will be:-
 /usr/local/bin/php -q /home/YOUEcPuser/public_html/php_yourScript.php
>/dev/null 2>&1
 if you want to use relative path then different commands are divided by ";"

Python & Perls command:
        for python and perls the correct command will be:-
  •  There is no need to use full path to environment, environment interpreter directive will be enough on shared servers.
Your Cron has setup:

About Author -

Hi, I am Anil.

Welcome to my eponymous blog! I am passionate about web programming. Here you will find a hug of information on web development, web design, PHP, Python, Digital Marketing and Latest technology.

Subscribe to this Blog via Email :