Important!
This documentation has been deprecated. We are migrating Oempro help articles to our new help portal. Take a look at more detailed help articles on our new help portal.
Sections:
CRON Jobs (Scheduled Tasks in Windows) are used to trigger certain commands periodically. Oempro uses cron jobs extensively to automate some processes such as email sending, auto responder sending and list synchronization.
This guide will describe how to setup both CRON (in *nix/Mac OS X/Linux) and Scheduled Tasks (in Windows) step by step.
Oempro comes with 7 modules which should be set in your CRON job list:
Each periodical process in Oempro has been separated into different CRON job commands to maximize the performance and avoid the waiting time until one process gets completed.
Oempro CRON and email piping methods (described in the next chapter) are located under [installation_path]/oempro/cli/ directory:
The above screen shows that there are many files under "cli" directory. We will explain each file later on in this chapter.
Setting up cron jobs vary based on your operating system. In this guide, we will explain how to set cron jobs for Linux and Windows operating systems. Please contact your hosting provider to learn more about how to set it on your own hosting environment.
There are two methods for setting up CRONs in Oempro. You need to select the appropriate method based on your server configuration:
Command line compatible cron jobs are located under [oempro directory]/cli/. These CRON modules must be executed with the PHP interpreter on your server:
Type the following command to edit the existing CRON jobs.
crontab –e
Add the following new CRON jobs:
* * * * * php -d safe_mode=off -f /path/to/oempro/cli/send.php >/dev/null
* * * * * php -d safe_mode=off -f /path/to/oempro/cli/sync.php >/dev/null
* * * * * php -d safe_mode=off -f /path/to/oempro/cli/transactional_send.php >/dev/null
* * * * * php -d safe_mode=off -f /path/to/oempro/cli/general.php >/dev/null
Now Save the file and crontab should report - Installing New Crontab
Web browser compatible cron jobs are located under [oempro_directory]/cli/ and they start with "web_" and "pop3_" prefix:
These CRON jobs must be executed with a web browser (Firefox, Internet Explorer, Safari, etc.) or a command line based browser such as (wget or curl). We suggest using these modules if you are unable to execute command line compatible CRON jobs. They are less affected by your web server configuration and limits.
In order to setup these cron jobs on your web server, login to your server via telnet or SSH and follow these steps:
Type the following command to edit the existing CRON jobs.
crontab –e
Add the following new CRON jobs:
* * * * * curl -s http://yoursite.com/oempro/cli/web_send.php >/dev/null
* * * * * curl -s http://yoursite.com/oempro/cli/web_sync.php >/dev/null
* * * * * curl -s http://yoursite.com/oempro/cli/web_transactional_send.php >/dev/null
* * * * * curl -s http://yoursite.com/oempro/cli/web_general.php >/dev/null
* * * * * curl -s http://yoursite.com/oempro/cli/pop3_bounce.php >/dev/null
* * * * * curl -s http://yoursite.com/oempro/cli/pop3_fbl.php >/dev/null
* * * * * curl -s http://yoursite.com/oempro/cli/pop3_requests.php >/dev/null
Now Save the file and crontab should report - Installing New Crontab
That’s it - you are done with the CRON setup and the server will execute the three jobs every minute.
The following procedure explains how to setup scheduled tasks for Oempro scheduled tasks in Microsoft Windows operating system.
The scheduled tasks that we will setup will execute the wget command to load Oempro scheduled task modules. The wget command is not available in the default installation of Windows operating system. Therefore, you will need to download wget application and install it before setting up scheduled tasks in Windows.
There are several wget binaries for Windows. You can select another one by making a search on Google:
http://www.google.com.tr/search?q=wget+windows
C:\WINDOWS\wget.exe -q -O NUL http://yoursite.com/oempro/cli/web_send.php
Repeat this process for the following scheduled tasks:
If you don't have CRON support on your server or don't know how to set it, you can use an online service http://www.webbasedcron.com/ to execute your cron jobs.
If you have Plesk control panel on your server, setting CRON modules is easier and it will take only a few minutes.
Login to your Plesk control panel
Click "Crontabs" icon on your hosting panel
Click "Schedule a Task" icon
Create your first cron job just like in the below screen shot
That's all. Now repeat steps 1-4 for other Oempro CRON modules
Setting up CRON jobs in cPanel is just easy as in the Plesk control panel. Follow these easy steps to complete the CRON setup:
Login to your cPanel
Click "Cron jobs" icon under "Advanced" group
cPanel will ask you the difficulty level for setting up CRON jobs. Don't afraid, it's just easy as 1-2-3. Select "Linux Style" option.
Set your first cron job based on the example in the below screen shot:
That's all. Now repeat steps 1-4 for other Oempro CRON modules