Cron

From SLIS Second Life Wiki

Jump to: navigation, search

A cron job is used on servers to run a list of commands of your choice at times you specify. A very good link explaining cron jobs is here: http://www.unixgeeks.org/security/newbie/unix/cron-1.html

Firstly, to edit the cron job, you should log onto your server, using a program like: putty. You can download putty here: http://www.chiark.greenend.org.uk/~sgtatham/putty/

Next, at the server prompt type: crontab -e this will load your crontab file.


Next add this line: 0,10 * * * * php -f http://yourserver.com/moodle/mod/freemail/check_mail.php This will instruct Postcard Blogger (Freemail) to check mail 10 minutes.

More examples are here: http://www.kalab.com/freeware/cron/cron.htm

Next press control-x, to save, and Y for Yes

Now your checkmail.php script will automatically run and parse SL Postcards into your moodle system!