OJS supports a mechanism to execute a variety of tasks at scheduled times
(such as automatic sending of reminder notification emails).
To enable support for using scheduled tasks, edit your config.inc.php and
set the scheduled_tasks setting to On, and set up your operating system to
periodically execute (as the same user your webserver is running under) the
PHP script found at tools/runScheduledTasks.php in your OJS directory:
On *nix operating systems, this can be done by adding a simple cron task:
# crontab -e www
0 * * * * php /path/to/ojs2/tools/runScheduledTasks.php
In this example the script would be executed every hour.
On Windows XP systems, this can be done by using the Windows Task Scheduler:
1) From the Control Panel, double-click on Scheduled Tasks.
2) Right-click within the Scheduled Tasks window and choose:
New > Scheduled Task
3) Under the Task tab, in the Run field, enter:
4) You will also be asked to specify the folder to start this task in
(which will usually be the folder that PHP was installed into) and
the user under which the task will be executed as.
5) Under Schedule tab and the Settings tab, you can more specifically
configure the task. For example, you can choose start and end dates
for this scheduled task and also how often to execute this task.
If using the scheduled tasks script, it is recommended that the script be
set up to execute at least once per day.
Note that using the script also requires you to have the PHP command-line
interpreter installed on your server.
Users browsing this forum: No registered users and 6 guests