How to Set a Cron job in my Domain

Follow the below procedure to set up a cron job under your cpanel.

1. Login to Cpanel
2. Select cron job icon in the advanced features
3. Cron Email section allows you to specify an email address at which you would like to receive notifications whenever your cron jobs are run
4. To specify an email address enter the email address at which you wish to receive the notifications in the email field
5. Click the Update Email button
6. In “add a new cron job” configure the time intervals at which you desire to execute the command
7. Enter the command to be executed in the command field
8. Click add a new cronjob.
9. Thus the cron job is being set and the notification will be sent to the mail whenever the cron is executed.

Ex:
==
You can set the timings. Please make sure that cron must be set above 45 minutes timing interval.

The path might be,

/usr/local/bin/php -q /home/username/public_html/sample.php(your file name)