Running CRON job on Ubuntu server for SugarCRM
Posted
by
Logik
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Logik
Published on 2012-10-27T09:56:44Z
Indexed on
2012/11/17
11:27 UTC
Read the original article
Hit count: 430
cron
I am pretty inexperienced in Linux, so be descriptive on your answer.
My environment: Local Linux server 12.04 hosting Sugar CRM 6.5.2.
There is area in sugar CRM called scheduler. I can configured some predefined jobs here. in my case i am trying to run email reminders (ever min/hour/day/month). For this scheduler to be effective, i read some where i need to setup CRON job. So I did some research & finally put following lines in CRONTAB for the root user, as per instructions given in sugarCRM.
* * * * * cd /var/www/crm; php -f cron.php > /dev/null 2>&1
Well I am creating contracts in my sugarCRM (AOS module) & I want email reminders to be sent for these contracts to the concern person. Now my sugarCRM email is configured correctly & I can send test emails using it. But the CRON + scheduler not giving any result. I can't receive any emails.
Then I tried to read /var/log/syslog & it is showing entry for following line each minute.
Oct 27 15:03:01 unicomm CRON[28182]: (root) CMD (cd /var/www/crm; php -f cron.php > /dev/null 2>&1)
I've few questions:
- what does the CRON job line i've added in crontab mean?
cd /var/www/crm; php -f cron.php > /dev/null 2>&1
is not making any sense to me. - How am i suppose to get this thing work? I've searched a lot (including SugarCRM forum), but no luck.
© Ask Ubuntu or respective owner