The SugarCRM Community is now "read-only" to prepare for the SugarClub launch on August 3. Please visit
Announcing SugarClub - Are you in? for more information.
Not able to run scheduled job from sugarcrm scheduler. sugarcrm on premise 7.7
I am able to run job using php.exe -f cron.php command.
Its very urgent
All the sugarCRM jobs required a windows (or linux depending on your hosting) job to be run.
So you have to add an entry on windows scheduler to run cron.php, and then this sugarCRM script will run all the SugarCRM job, according to their particular settings.
Hi Anup Kumar
Is your SugarCRM instance configured in server cron job?
That mean, run as root the following command:
Then add into editor (vi maybe) a line like that:
* * * * * cd <path/to/your/sugarcrm/instance>; php -f cron.php > /dev/null 2>&1
Additionally double check file sugarcrm.log and look for any error regarding cron jobs.
I want to run Jobs from Sugarcrm scheduler, not from windows schedulers.
Hi Anup Kumar,
I see that you talk about php.exe ; your server is a windows server ? If yes, do you follow this tutorial : http://support.sugarcrm.com/Knowledge_Base/Schedulers/Introduction_to_Cron_Jobs/#Windows
and also mybe this issue : To Setup Windows Scheduler
Hi frinaldi ,
Create in the root of your crm instance the file cront_install.bat with the following content:
@echo offecho cd "%CD%" > cron.batecho php.exe -f cron.php >> cron.batschtasks /create /sc minute /tn "Sugar CRM" /tr "%CD%\cron.bat"
Then execute it.
It will add into Windows Scheduler a scheduler for your SugarCRM instance which will run every minute.
I would like to add one more note. You would need to make sure the cron is run as the same user as the web server.
Cron can at times generate files (eg: if a repair is executed and Cron is the first process running) and if setup incorrectly, could cause the wrong user to create files.
Retrieving data ...