Setting up a Cronjob
From PHPDevShell
Scheduled maintenance
Scheduling maintenance as a task is more flexible than automatic maintenance. You can start the maintenance script by:
- executing a locally run script
- calling the script url on the web server
Scheduling tasks on Linux and Unix
Remember you menu item [742061208] System Cronjob must have guest access otherwise the server will not be able to touch the cron system.
On Linux, BSD, Solaris or MacOSX you can use the cron daemon to automatically run the maintenance script. In most cases you will need shell access to your server to add cron tasks, using the following commands:
- Log on to your server, then use the following command to export your existing scheduled tasks to a text file: crontab -l > cron.txt
- In a text editor, add one of the following entries to the cron.txt file:
If your server supports:
#If your server supports wget: */10 * * * * wget \-q \-O /dev/null [http://www.example.com/index.php?m=742061208] #If your server supports fetch: */10 * * * * fetch \-o /dev/null [http://www.example.com/index.php?m=742061208] #If your server supports lynx: */10 * * * * lynx > /dev/null \-dump [http://www.example.com/index.php?m=742061208]
When you have finished editing the cron.txt file, use the following command to import it into the cron daemon:
crontab cron.txt
You can now continue to manage cronjobs inside PHPDevShells cronjob manager ui.

