+ Reply to Thread
Results 1 to 7 of 7

Thread: Cron Jobs for Xml import

  1. #1

    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.

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,137
    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

  3. #3
    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

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,137
    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
    Last edited by Rudi; November 23, 2021 at 02:42 AM.

  5. #5
    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.

  6. #6
    After hours cron sent me email and said

    No input file specified.

    Maybe script want something else to run?

  7. #7
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,137
    Probably, these commands also don't support parameters

+ Reply to Thread