Linux Cronjob

 

Below is few example to run a cronjob:

every five minute using http wget:

*/5 * * * * wget http://domain.tld/mailman.php -O /dev/null

every midnight using file path:

0 0 * * * /usr/bin/php -q -f /home/username/public_html/filepath.php -O /dev/null

you may do this inside cpanel by clicking cronjob menu, use standard interface for easier menu and advanced. normally if you are running a script, the install instruction will tell you what cronjob command to be run so you may simply set it in cpanel cronjob menu. Otherwise above command example might help you.

  • 9 Users Found This Useful
Was this answer helpful?

Related Articles

Can I add my own CGI Scripts?

Our LINUX web servers have the capability to run CGI scripts in your own "cgi-bin" directory....

Startup Guide for Linux Hosting

Below are the information you need to take note in order to fully utilize our server without...

Website in few clicks/steps for Linux Hosting

Standard Method: 1. Build your own website using your own tool. 2. Connect to FTP and upload...

Managing Spam Filter on Linux

We use very effective spam filter under Linux Hosting, but in order to make it more efficient...

Can't logon to Cpanel & Webmail

If this happen to you and most of problem is because of your internet connection is behind...