MojoDirectories
Documentation
MojoDirectories
[an error occurred while processing this directive]
Automation Routines

MojoDirectories provides you tools to automate system maintenance processes and email sending. The tools are "cron.cgi" and "cron_ss.cgi". It is recommended that you run them once daily either by direct accessing from your browser or by setting up cron on your server (more information regarding cron setup below).

cron.cgi

  • Expires ads
  • Expires members
  • Sends saved search profiles accumulated the previous day

cron_ss.cgi

  • Sends saved search profiles instantly.

Cron Setup

If you have the ability to define cron jobs on your server, you do not need to manually run the files cron.cgi and cron_ss.cgi from your browser, cron will send it for you on pre-determined times.

Server Panel

Some hosting accounts let you setup cron routines from the server control panel, usually "cpanel" server control panel offer this facility.

  1. Login to your server panel
  2. Locate and access the cron jobs section.
  3. Click "advanced button" to access cron manager
  4. Here you can define when you want the script to run, it is recommended to run at night, when server load is at its lowest. Enter following values into the minutes-weekday fields:

    15 0 * * *

    And in the command field:

    /your/server/path/to/cron.cgi

    (This means that you want the server to run cron.cgi at 0:15 midnight each day.

Server Shell

Create a blank file with following content with your texteditor and upload it to your server:

15 0 * * * /your/server/path/to/cron.cgi

(Of course, change /your/server/path/to to your actual server path to the cron.cgi file, you'll get this info from your hosting company.)

Then login to telnet/SSH and type 'crontab -l' on the prompt to see if there are already cron jobs loaded. Now change directories so that you are in the same folder as the 'cronjob' file you just created and uploaded, then load it into cron by typing following command on the prompt:

crontab cronjob

Then check to see if the job was loaded into cron by typing:

crontab -l

Copyright by MojoDirectories.com
Terms | Privacy Policy