Cornjob Commands in cPanel
Cron jobs allow you to automate certain commands or scripts on your site. You can set a command or script to run at a specific time every day, week, etc. For example, you could set a cron job to delete temporary files every week to free up disk space.
Here are few useful commands for newbie cPanel users, this will help you run scripts at a specific time. Just choose a timing in cPanel “Add new Corn Job” settings and enter following commands in command inputbox, where XXXX is your scripts name, hope it helps.
- Run a PHP script at specific time :
- Set a timing to delete your apache error_log files.
- Delete all cache files inside cache directory.
- Run a shell script.
- Execute a PHP file and save corn errors in a file
Saran Chamling. (He loves the web technology, and enjoys designing, exploring and writing about it @saaraan.com).