Fix Cron Jobs for WP-o-Matic or WP Robot

I run a number of other mini blogs out there which aggregate data from one or multiple sources. I could never get WP-o-Matic or WP Robot to run cron jobs correctly in cPanel. No matter what I did I always got the error: No such file or directory.

A simple fix to this error is adding the code ” wget -O /dev/null ” before the URL of your cron job when typing it into cPanel.

With just the URL cPanel does not know which program to use.  In this case ‘wget’ is the program. Since the URL actually returns no output (for the user or for wget), wget wants to write an empty file to your hosting home directory. The ‘ -O /dev/null ‘ option tells wget to write that file to ‘nowhere’ so you don’t get a bunch of empty files cluttering up your home directory and using up inodes.

Happy Automated Blogging!

Follow Robbie Hodge:

4 Responses to “Fix Cron Jobs for WP-o-Matic or WP Robot”

  1. Thanks for the tip. I seem to be having some problems with this getting to work still. I’ve tried these different variations but have had no success in actually having anything getting posted on my site.

    wget -O /dev/null/http://mysite.com/wp-content/plugins/wp-o-matic/cron.php?code=#######

    wget -O /dev/null http://mysite.com/wp-content/plugins/wp-o-matic/cron.php?code=########

    Any ideas on what I can do?

    Thanks!

  2. Robbie Hodge says:

    Brent –

    Everything looks good. Here is what I have exactly: wget -O /dev/null http://www.mysite.com/wp-content/plugins/wp-o-matic/cron.php?code=#########

    Maybe try adding at www. or double checking the code?

    Cron jobs seem to just take a magic combination. I was shocked when I got the one to run which is why I wrote the post.

  3. Hey Rob,

    Thanks for the quick answer, adding the www fixed the problem but now I have a new one!

    I am pulling RSS Feeds every 20 minutes. The first cron job worked, pulled posts and did everything it needed to. Wp-o-matic log looked good

    # January 5, 6:20:03 pm – Processing item
    # January 5, 6:20:02 pm – Processing campaign Feeds (ID: 1)
    # January 5, 6:20:02 pm – Processing feed #### RSS (ID: 10)
    # January 5, 6:20:00 pm – Running cron job

    Unfortunately the log displays something like this after that 1st one when it tries to do another.

    # January 6, 8:00:02 pm – Running cron job
    # January 6, 7:40:02 pm – Running cron job

    It doesn’t pull every 20 minutes, it keeps running the cron job with strange results – hours later the post will update.

    Any ideas?

    Thanks again for the help, will keep you in mind for future projects

  4. Robbie Hodge says:

    Brent,

    Without seeing what your pulling from it would be hard to say. It’s possible there is nothing to pull so the results don’t post? Keep an eye on it and see if it updates as more items come thru the feed.

    If that doesn’t work just shoot me and email and we can dig more into it.

Trackbacks/Pingbacks

  1. Fix Cron Jobs for WP o Matic or WP Robot RobbieHodge com The - Scammers | Scammers - [...] data from one or multiple sources. I could never get WP-o-Matic or WP Robot to … – Full Story ...

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.