You are here:  » CRON problem

Support Forum



CRON problem

Submitted by CSYS on Tue, 2007-03-27 21:33 in

I would try to automate import.php @MODIFIED using a cron job.
Well, i have created an automated.sh file:

#!/bin/sh
/usr/bin/php -f /var/www/vhosts/mysite.com/httpdocs/shopping/scripts/import.php @MODIFIED

And i have setup a cron job using plesk:
/var/www/vhosts/mysite.com/httpdocs/shopping/scripts/automated.sh

It seems that it does not understands @MODIFIED parameter, since the cron mails me:

backfilling reviews... backfilling reviews...[done]

If i try to @ALL instead of @MODIFIED, the result is the same :(

I have tried to input

/usr/bin/php -f /var/www/vhosts/mysite.com/httpdocs/shopping/scripts/import.php @MODIFIED

directly into the cron job, but the result is the same.
Am i wrong?

Thank's a lot

Submitted by support on Wed, 2007-03-28 08:57

Hi,

Your cron job email alert system is probably only sending you the last line of the output, which is always the "Backfilling Reviews" message, so it would seem that it is working in both cases. If import.php didn't know what to do you would get the help message instead of "Backfilling Reviews".

To confirm that it is working, you need to compare the file timestamps in your feed directory with the imported time shown in the admin page - that should confirm that any modified (or all if using @ALL) feeds have been imported correctly.

Cheers,
David.