Configure scheduled tasks
Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.
Linux and Mac OS X
In order to run SuiteCRM Schedulers, it is necessary to add the following line to the crontab file. You can add this line with the crontab editor:
$ sudo crontab -e
Add the line below:
* * * * * su daemon -s /bin/sh -c "cd installdir/apps/suitecrm/htdocs; installdir/php/bin/php -f cron.php > /dev/null 2>&1"
Windows
In order to run SuiteCRM Schedulers, it is necessary to use the Windows task scheduler. Follow these steps:
-
Navigate to the stack installation directory and create a file named cron.bat with the following content. Replace the installdir placeholder with the actual installation directory path.
@echo off cd installdir\apps\suitecrm\htdocs installdir\php\php.exe -f cron.php
-
Launch an elevated Windows command prompt.
-
Add a new scheduled task using the command below:
c:\> schtasks /create /tn "SuiteCRM Cron Job" /tr " installdir\cron.bat" /sc minute