Issue
Hi I'm trying to make a cron job for importing products into my magento. I've got it all working just on an ad hoc basis but now I need a cron.
Ideally I would like to use the wget as that's the most straightforward.
So I'm using wget "http://www.xxxxxx.com/magmi/web/magmi_run.php?profile=default&mode=xcreate&engine=magmi_productimportengine:Magmi_ProductImportEngine" -O /dev/null
but I'm having problems with this error message HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers. Coming up - which trys for 20 times and then gives up.
Can anyone tell me what the problem could be? Thanks Richard
Solution
I would recommend using the Magmi CLI Interface to handle cron job running (as HTTP connections may have timeouts and such).
I would run the following command on your cron job:
php /path/to/magmi/cli/magmi.cli.php -mode=create
You can define a custom profile and mode by referencing the documentation here: http://sourceforge.net/apps/mediawiki/magmi/index.php?title=Magmi_command_line
Answered By - Axel Answer Checked By - Candace Johnson (WPSolving Volunteer)