-
Cron Jobs for Xml import
Hi there...
Now i run the Xml feeds from cron with the command below. I have cpanel.
Code:
Only registered members can view the code.
Every feed that is enabled at Admin Panel>XML Import/Export>Manage Feeds start to run.
How can i run different feeds with commands at cron jobs?
I want a command at cron jobs to run a specific feed.
-
Hello,
First, you need to ask your hosting what is the correct command for using parameters in the cron job
and then change the path to import file like:
/home/mydomain/public_html/plugins/xmlFeeds/import.php?feed=YOUR_FEED_KEY
-
i have run this command and cron sent me notification that "could not open input file" /home/mydomain/public_html/plugins/xmlFeeds/import.php?feed=YOUR_FEED_KEY
-
You should ask your hosting what is the correct command to pass parameters in the command line, ex: php -q /path/to/xml/cron/import.php?feed=YOUR_FEED_KEY
and instead of YOUR_FEED_KEY you should insert your feed key
-
Any command that hosting tell me to try did not work. the path with all commands was
/home/mydomain/public_html/plugins/xmlFeeds/import.php?feed=YOUR_FEED_KEY
mydomain= my domain and YOUR_FEED_KEY= a key of a feed that i select and be enabled at admin panel.
commands of hosting that i try was
php -q
/usr/bin/php -q
/opt/cpanel/ea-php72/root/usr/bin/php -q
and cron do not notify me at email. Also i see at terminal to start the process but after one second not appear.
-
After hours cron sent me email and said
No input file specified.
Maybe script want something else to run?
-
Probably, these commands also don't support parameters