Hi David
Can you tell me information regrading to automatic script .I have Merchant feed URL ..how can run feed on our script ..need to download that file ??
URL :{link saved}
Thanx
Amin
Hi David
I can't follow your instructions above (last step) as my Support Info does not show any CRON commands:
Automation Unzip Programs
unzip Not Available
phpgzip Not Available
CRON
Option 1 Not Available
Maybe this has to do with the changes we have done here: http://www.pricetapestry.org/node/191. In any case, I would be glad if you could point me in the right direction to get the automation to work.
Best regards,
IG
Hello IG,
The output displayed on your Support Info page, plus the modifications from the thread you mention indicate that your PHP installation is running in quite a restrictive mode, with no access to command line utilities such as zip/gzip and in particular php (which is looked for by default in /usr/local/bin/php - see config.advanced.php line 50).
However, that doesn't mean that command line PHP is not available when your server is executing a CRON job, as the web server / PHP (as an Apache module) doesn't come into it.
If you want to try this, the generic command is
cd /path/to/pricetapestry/scripts/;/path/to/php cron.php
So assuming that your php binary is in the default location of /usr/local/bin/php, you could use the command:
cd /path/to/pricetapestry/scripts/;/usr/local/bin/php cron.php
For /path/to/pricetapestry/ - use the value of Install Path as shown on Support Info page of your Price Tapestry installation...
Hope this helps!
Cheers,
David.
--
PriceTapestry.com
Hi David
Great, this is working! I set up a cron job accordingly.
Where do I find more information for distribution version 12/10B regarding the zero down-time mod?
Best regards,
IG
Hi David,
Not getting all value(image url,category,spceification,...)from master.csv When I import All feed using automatic cron tool
Thanks
Amin
Hello Amin,
That sounds like the process isn't being triggered - maybe as a result of the mods made to moderate reviews. Could you please email me your latest includes/admin.php and also confirm the method you were previously using to import that was OK and I'll check it out...
Cheers,
David.
--
PriceTapestry.com
Hi David
I am bit confused. Which modifications do I need to make if I want to run this by calling cron.php:
a) Only the modifications in the first thread you have written
b) The modifications in the first thread + the additional modifications you have given Allen starting with "Here's the corresponding change for scripts/cron.php. "
c) Only the modifications you have given to Allen
Thanks for letting me know,
IG
Hello IG,
Sorry for the confusion - if you do b) - the original post and follow up to Allen (regarding cron.php) that will cover everything!
Cheers,
David.
--
PriceTapestry.com
Hello David
I am trying to automate my new site, which runs on the same server as the old one, with the following CRON job from above:
cd /path/to/pricetapestry/scripts/;/usr/local/bin/php cron.php
I have double and triple checked everything, but the CRON job simply won't run.
Does the above command still apply for the latest distribution?
Best regards,
IG
Hello IG,
That looks fine - check that it's identical to the Option 1 command shown on the Support Info page of your /admin/ area? The only normal variable in what you're using is the path to the php binary, so if you haven't done already, it would be worth trying:
cd /path/to/pricetapestry/scripts/;/usr/bin/php cron.php
Cheers,
David.
--
PriceTapestry.com
Hi Amin,
The first stage in setting up CRON is the Automation Tool. Here, you can create "jobs" that contain the information required to fetch, unzip if required, and save your feeds into your /feeds/ folder.
If setting up new Automation Tool "jobs" with feeds that are already registered and imported into your database, when creating the job don't forget to use exactly the same Filename as the feed is currently saved as. That way, you won't need to re-register it all.
Having create a job, you can test it by clicking Run to run the job manually. If the status displays OK, if you then go back to the /admin/ home page you'll see Import highlighted in green, indicating that the feed has not been imported since it was last modified.
You're not ready to set-up your CRON job, which you would normally do from your web hosting control panel. Look for the CRON section; where you should be able to enter a command, and the schedule on which you want it to run.
To find out what command to enter, go to the Support Info page of your Price Tapestry /admin/ area, and at the end of your page you'll see the CRON commands that the script has derived for you. Use Option 1 out of preference, which will contain a cd (change directory) command, and the php (PHP command line module) command to run scripts/cron.php. cron.php does 2 things:
1) Runs all jobs set-up in Automation Tool
2) Imports all feeds
Hope this helps!
Cheers,
David.
--
PriceTapestry.com