WordPress.org

Ready to get started?Download WordPress

Forums

using corn job (11 posts)

  1. xinfo
    Member
    Posted 8 years ago #

    Hi Team

    i display news via rss in my blog using the plugin http://projects.radgeek.com/feedwordpress (feedwordpress)

    i have cpanel to control the web space i like to know how i can add the corn job so it can auto update

    in the manunal there provide the code 25 * * * * curl --user login:pass http://www.zyx.com/blog/wp-content/update-feeds.php -d update=quiet to add in linux box i really dont under stand that i want to add in my corn job where i have only cpanel to control the hosting

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    Mmmm... corn..

    It's called "CRON" and if all you have is CPanel, and it doesn't have a cron jobs configuration panel, then you can't do it.

  3. lleger
    Member
    Posted 8 years ago #

    Ha! That's hilarious!!! Sorry, we all make mistakes it's just... geek humor... haha!

  4. xinfo
    Member
    Posted 8 years ago #

    opps spelling mistake well i have cron job in my cpanel i like to know how i should add the code (25 * * * * curl --user login:pass zyx.com/blog/wp-content/update-feeds.php -d update=quiet ) which is given in the manual

  5. whooami
    Member
    Posted 8 years ago #

    hahah, i had to click just to see the responses :)

    thats better than "teh"

  6. xinfo
    Member
    Posted 8 years ago #

    ohh can't get good response

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    well i have cron job in my cpanel i like to know how i should add the code (25 * * * * curl --user login:pass http://zyx.com/blog/wp-content/update-feeds.php -d update=quiet ) which is given in the manual

    I can tell you what it means, but I don't know what your panel looks like as I've not used CPanel before. So you'll have to figure that part out yourself.

    cron directives look like this:
    25 * * * * command

    The number and each of those asterisks define when the job runs. It goes like this:
    minute
    hour
    day of month
    month
    day of week

    So the job you've posted says to run the command once every hour, on the 25th minute. So at 1:25, 2:25, 3:25, etc.

    Now, the command you gave was this:
    curl --user login:pass http://zyx.com/blog/wp-content/update-feeds.php -d update=quiet

    curl is like a command line http client. That's basically a command to retrieve that URL.

    So, every hour, your cron job will go and get that URL, which causes the update-feeds.php script to run.

    You don't have to use curl. wget or lynx will work just as well for a cron job. You'll really probably want to ask your host how to do that command correctly, because it'll vary depending on their system and such. Then just set it to run however often you like. My email posting command (using Postie) runs every 15 minutes, for example. How often is up to you, what the command is depends on your host.

  8. frankpereiro
    Member
    Posted 8 years ago #

    Is there another way to do that besides using CPanel?

  9. xinfo
    Member
    Posted 8 years ago #

    well i understand those step but when it update it will ask the wp login and pass .how to add login and pass in cron job

  10. Samuel Wood (Otto)
    Tech Ninja
    Posted 8 years ago #

    Why would it ask for the wp login and pass? It's an update, not an admin page.

  11. xinfo
    Member
    Posted 8 years ago #

    its not reblog its feedwordpress its always ask login and password when i update manually also ,even in authour web site there mention to add login and pass in cron job
    25 * * * * curl --user login:pass zyx.com/blog/wp-content/update-feeds.php -d update=quiet

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.