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.
Please help.
Its very urgent
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.
Please help.
Its very urgent
Hi Anup Kumar
Is your SugarCRM instance configured in server cron job?
That mean, run as root the following command:
crontab -e
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.
Kind regards
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
Kind regards,
Fred
Create in the root of your crm instance the file cront_install.bat with the following content:
@echo off
echo cd "%CD%" > cron.bat
echo php.exe -f cron.php >> cron.bat
schtasks /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.
Kind regard
Create in the root of your crm instance the file cront_install.bat with the following content:
@echo off
echo cd "%CD%" > cron.bat
echo php.exe -f cron.php >> cron.bat
schtasks /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.
Kind regard