Feed Me Cron Job failing on 123-reg hosting I'm trying to set up a cron job to run the feed me direct feed url in 123-reg hosting. The command they are saying to use is:
/usr/local/bin/php /home/username/public_html/index.php?p=actions/feed-me/feeds/run-task&amp;direct=1&amp;feedId=1&amp;passkey=xxxxxxx

However I'm getting an error:
Could not open input file: /home/username/public_html/index.php?p=actions/feed-me/feeds/run-task
The feed action runs fine when used in a url. So is there something not right with the cron? Looking at the error message that is sent through it seems to be stripping anything after the first &amp; ?
Ok after a bit of digging. It turns out I was able to run this with wget. But had to comment out the &amp;'s as these were being read as commands in cron. Also worth noting you would need to do the same with %'s as well.
So the final solution is:
wget -q -O - https://domain/index.php?p=actions/feed-me/feeds/run-task\&amp;direct=1\&amp;feedId=1\&amp;passkey=xxxxxxxxxx &gt;/dev/null 2&gt;&amp;1

Hope this helps anyone else with a similar issue.