Setting up a Scheduled Task in Linux

From Cerberus Helpdesk Wiki

Jump to: navigation, search

Open your crontab (crontab -e at the shell, or using your Control Panel software) and add an entry using:

*/5 * * * * wget -O - -q http://www.your-website/cerb5/cron 2>&1 > /dev/null

Or, if you're not using URL rewriting, use:

*/5 * * * * wget -O - -q http://www.your-website/cerb5/index.php/cron 2>&1 > /dev/null

Be sure to set the full path of wget (for example: /usr/bin/wget). You will get the path by typing

which wget

Include this into your cronjob.

* * * * * wget -O - -q http://www.your-website/cerb5/index.php/cron 2>&1 > /dev/null

Optional: Installing wget from source

  1. Visit gnu.org
  2. Download the latest release of wget.
  3. Extract the archive into a new directory. 'cd' to the new directory.
  4. Run ./configure
  5. Run make
  6. Run make install

The wget command should now be on your path. You can now follow the instructions at the top of this page.

Optional: Installing wget from RPM

  1. Visit rpmfind.net
  2. Download the latest wget RRM for your platform.
  3. Run rpm -i filename.rpm (or the equivalent command for your platform).
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox