Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Constant Pligger hamidhamid1985's Avatar
    Joined
    Jul 2009
    Posts
    159
    Thanks
    Received:0
    Given: 0

    Cronjon for RSS importer

    I know that RSS importer is not supporting more. But please tell me how can i set a cron job for it.
    Thanks a lot

  2. #2
    New Pligger vishywashi's Avatar
    Joined
    Mar 2007
    Posts
    21
    Thanks
    Received:0
    Given: 0

    Talking

    Hi, this is how you setup the Cronjob in brief. You can download the full document I have attached to see screenshots etc. Its all part of a system I call the Automagical System - with which you can add content from any website into your pligg site instantly and also create mass users and voting.

    You need to finally setup a Cron Job which will call a file that will execute the Feed Importing into your site, with all the configurations you have defined for each feed and at the above defined intervals for each feed.

    You will need to basically setup a Cron Job to access the file called import11.php (please change its name to some random name and number to hide it) and to run once every hour.

    Setting up a Cron Job is not difficult and can easily be done from your CPanel. It is beyond the scope of this document on how this is done.

    In order to have your Cron Job access this import11.php (or appropriately hidden and renamed file) – you will need to know the path to this file on your server.

    For this, you can simply access the previously uploaded a file (from a previous step above) in the root called /cronpath.php . Simply access this file from your browser by typing www.yoursitename.com/cronpath.php - and it will show you something like this in your browser display - /home/someuserid/public_html/cronpath.php .

    From this you will learn that your root path location is something like this - /home/someuserid/public_html/

    This means that the file you want the Cron Job to access is – /home/someuserid/public_html/import11.php


    Next: Defining Your Cron Job command:

    From the above data we have now retried your machine path that can be inserted and used appropriately for your Cron Job command, in either of the 2 ways…

    Method (A) - If you want to receive an email every time the Cron runs use this -

    php -q /home/someuserid/public_html/import11.php

    simply replace the path with the path you got from above, followed by the text -
    /import11.php

    Method (B) - If you DO NOT want to receive and email everytime the Cron runs use this –

    php -q /home/someuserid/public_html/import11.php > /dev/null 2>&

    simply replace the path with the path you got from above, followed by the text -
    /import11.php

    Finally, access your CPanel Cron Area and insert, either of the above commands into the Corn area to run ONCE every hour.
    PLEASE INSERT AND REPLACE YOUR CUSTOM PATH FROM ABOVE CRONPATH DATA ACCORDINGLY INTO THIS COMMAND. DO NOT USE THIS SAMPLE COMMAND.

    You should use the Cron Command method (A) first, so you get an email each time it runs every hour – so you can monitor it for a few days. It is best to leave it as it is once it is all setup, but you can switch to method (B) if you like at anytime.

    Let me know if you have any questions!

    cheers

    Vishy
    Attached Files Attached Files

  3. #3
    Constant Pligger hamidhamid1985's Avatar
    Joined
    Jul 2009
    Posts
    159
    Thanks
    Received:0
    Given: 0
    Thanks a lot for your perfect guide but both methods don't work and still this module doesn't work. I copied import.php to the root of my server and as you said changed it to import1.php and made cronjob for it as you said.( I made correct cronjobs for them as i have made it before for many scripts). I tried both methods and they don't work. Please help me more.

  4. #4
    New Pligger vishywashi's Avatar
    Joined
    Mar 2007
    Posts
    21
    Thanks
    Received:0
    Given: 0
    it is import11.php not import1.php - whatever... just call the right file. tell me if it does not work?

  5. #5
    New Pligger vishywashi's Avatar
    Joined
    Mar 2007
    Posts
    21
    Thanks
    Received:0
    Given: 0
    Please PM me your email address and I will send you my custom import11.php file

  6. #6
    Constant Pligger hamidhamid1985's Avatar
    Joined
    Jul 2009
    Posts
    159
    Thanks
    Received:0
    Given: 0
    Thanks a lot. It works fine now. You are great.
    I just set it to 5 min. The first time it worked fine. But at the second time, i received this email from cronjob, Feed Frequency is 1.<br>Next run in 0.9 hours. How can i set Feed Frequency to 5 min?
    As you now, in default mode it can not be less than 1 hour. How can i change it to 5 min ?

  7. #7
    New Pligger vishywashi's Avatar
    Joined
    Mar 2007
    Posts
    21
    Thanks
    Received:0
    Given: 0
    Do you have access to Cpanel?

  8. #8
    Constant Pligger hamidhamid1985's Avatar
    Joined
    Jul 2009
    Posts
    159
    Thanks
    Received:0
    Given: 0
    Yes. I have access to Cpanel.

  9. #9
    New Pligger vishywashi's Avatar
    Joined
    Mar 2007
    Posts
    21
    Thanks
    Received:0
    Given: 0
    read the attachment doc i uploaded above. it shows you exactly how to setup via cpanel the frequency of cron.

  10. #10
    Constant Pligger hamidhamid1985's Avatar
    Joined
    Jul 2009
    Posts
    159
    Thanks
    Received:0
    Given: 0
    I did it it and ti works fine. But the problem is something else.
    In the module, the lowest defined time for importing feeds ( feed frequency ) is 1 hour.
    And if i set cron job to less than 1 hour, it doesn't work and it tells that you should wait 1 hour.
    Now i want to know which parts of module should be changed that feed can be updated automatically in less than 1 hour. For example every 5 min.

Page 1 of 2 12 LastLast

Similar Threads

  1. Rss importer, importer images problem
    By ashoak in forum Questions & Comments
    Replies: 4
    Last Post: 09-30-2009, 03:10 AM
  2. Rss Importer Bug
    By thedigitalgenius in forum Questions & Comments
    Replies: 32
    Last Post: 06-04-2009, 03:15 AM
  3. RSS Importer 1.0.0 RC1
    By branman in forum Questions & Comments
    Replies: 22
    Last Post: 04-15-2009, 02:32 AM
  4. RSS importer
    By NNois in forum Questions & Comments
    Replies: 0
    Last Post: 02-20-2009, 03:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg