PDA

View Full Version : Cron jobs issue? Does not seem to be running.



ozgurerdogan
03-11-2009, 04:00 PM
I have added 4 php file cron jobs in admin level domain.

But they do not seems to be running because when I manually run ;
-------------------------------
php /home/admin/domains/yesilbeyaz.com.tr/public_html/tools/master_cron.php
-------------------------------
I am getting (Do not know the error followed by):
-------------------------------
php /home/admin/domains/yesilbeyaz.com.tr/public_html/tools/master_cron.php
exim abandoned: unknown, malformed, or incomplete option -f
-------------------------------
But cron runs and I get the results that it must do.

But crons that I set up in DA, does not seem to be running as I set them to run once in a minute.

When I tail the cron log;
-------------------------------
Mar 11 23:45:01 lnxwebbox1 crond[30264]: (admin) CMD (/home/admin/domains/yesilbeyaz.com.tr/public_html/tools/updtransfers.php)
Mar 11 23:45:01 lnxwebbox1 crond[30265]: (admin) CMD (/home/admin/domains/yesilbeyaz.com.tr/public_html/tools/updateexp.php)
-------------------------------

Above php files are two of them that should run once in 23 hours.

Thanks in advance.

GXX
03-11-2009, 09:56 PM
I assume you are setting up crons for AWBS.

You need to specify full path to php as the following example:


/usr/local/bin/php -q -f /home/admin/domains/yesilbeyaz.com.tr/public_html/tools/updtransfers.php

ozgurerdogan
03-11-2009, 10:01 PM
Thank youuuu so much. I added them like so:

php -q -f /home/admin/domains/yesilbeyaz.com.tr/public_html/tools/updtransfers.php

So after adding full path like you said, it is all perfect now.

Thank you again.

floyd
03-12-2009, 06:56 AM
Or you can put the full path at the top of the php file (#!/usr/local/bin/php) and chmod 755 file.php.

ozgurerdogan
03-12-2009, 07:42 AM
Or you can put the full path at the top of the php file (#!/usr/local/bin/php) and chmod 755 file.php.

Thank but files are encrpyted so not sure if it would work. But I guess it works.. Thanks