Author Topic: Cron job  (Read 6986 times)

Debra

  • Administrator
  • Senior Member
  • *****
  • Posts: 11228
    • View Profile
    • April Reign
Cron job
« on: November 09, 2006, 11:49:15 PM »
file that under things that sound dirty but aren't....

Does anyone know enough about cron jobs to be able to tell me how to set one up?

Specifically I need to know how to make this

25 * * * * cd $HOME/www/wp/wp-content ; php -q update-feeds.php

work with this



to set up an automatic update for blogging change

code from here

http://projects.radgeek.com/feedwordpress/install/
“Damaged people are dangerous. They know they can survive.” —  Josephine Hart

Mandos

  • Senior Member
  • *****
  • Posts: 5759
    • View Profile
    • http://politblogo.typepad.com/
Cron job
« Reply #1 on: November 09, 2006, 11:58:29 PM »
I do know what a cron job is and maybe even how to set it up.  Cron is a very ancient unix program to run software repeatedly on a timed basis.  It's what makes the gears of the internet turn.  Or some of them, at least.

Debra

  • Administrator
  • Senior Member
  • *****
  • Posts: 11228
    • View Profile
    • April Reign
Cron job
« Reply #2 on: November 10, 2006, 12:02:43 AM »
so do you know how that string would fit into that form?

It's on netfirms and of course I can't get any tech support.  :roll:

I think it's because they haven't got a clue.
“Damaged people are dangerous. They know they can survive.” —  Josephine Hart

Mandos

  • Senior Member
  • *****
  • Posts: 5759
    • View Profile
    • http://politblogo.typepad.com/
Cron job
« Reply #3 on: November 10, 2006, 12:35:49 AM »
Hmm.  I was going to run cron manually on the netfirms ssh prompt but it doth not let me.  I'm going to experiment myself.

Mandos

  • Senior Member
  • *****
  • Posts: 5759
    • View Profile
    • http://politblogo.typepad.com/
Cron job
« Reply #4 on: November 10, 2006, 01:03:04 AM »
I was getting it to email me the results and run every minute, and it says, "No input file specified".  There's no information as to what that means.  Hmm.

pogge

  • Senior Member
  • *****
  • Posts: 4285
    • View Profile
    • Peace, order and good government, eh?
Cron job
« Reply #5 on: November 10, 2006, 01:19:50 AM »
Quote from: Mandos
I was getting it to email me the results and run every minute...


Easy now. Running a job every minute might tax the server and attract a little more attention than you want.

Mandos

  • Senior Member
  • *****
  • Posts: 5759
    • View Profile
    • http://politblogo.typepad.com/
Cron job
« Reply #6 on: November 10, 2006, 01:29:51 AM »
I turned it off.  And it's a trivial job, presently.  I think I have the job being *called* now, but it doesn't do what I expect it to do.

Mandos

  • Senior Member
  • *****
  • Posts: 5759
    • View Profile
    • http://politblogo.typepad.com/
Cron job
« Reply #7 on: November 10, 2006, 01:42:09 AM »
OK, it's calling it every 30 minutes, AFAIK correctly, but it's not updating my test posts.  Hmm.  I don't know if it should be doing that or not.  Could I have broken it?  Manually running doesn't seem to do much either.

Hmm...

Mandos

  • Senior Member
  • *****
  • Posts: 5759
    • View Profile
    • http://politblogo.typepad.com/
Cron job
« Reply #8 on: November 10, 2006, 01:48:00 AM »
Oh, I get it.  It staggers updates regardless of cron frequency.  Huh.

Mandos

  • Senior Member
  • *****
  • Posts: 5759
    • View Profile
    • http://politblogo.typepad.com/
Cron job
« Reply #9 on: November 10, 2006, 02:02:37 AM »
OK, so, as far as I can tell it's officially working.  If someone writes a post, we'll see if it appears immediately.  BUt it's not reflecting that I deleted a post and added two more.  I'm deleting all my test posts now.

skdadl

  • Global Moderator
  • Senior Member
  • *****
  • Posts: 32874
    • View Profile
    • http://www.pogge.ca
Cron job
« Reply #10 on: November 10, 2006, 04:52:42 AM »
I don't understand much of this, but I do think the place (Blogging Change)  looks very neat. I went there for the first time this morning, and it was such fun to see everyone popping up. Ooh -- I gotta write something just so I can watch.

Debra, if people here write to Rose's Place or to the Front Page, will those appear in the aggregator?

Debra

  • Administrator
  • Senior Member
  • *****
  • Posts: 11228
    • View Profile
    • April Reign
Cron job
« Reply #11 on: November 10, 2006, 06:48:56 AM »
Rose's Place and the Front Page added.

So anyone without their own blog who wants to start writing...... :piratepost
“Damaged people are dangerous. They know they can survive.” —  Josephine Hart

Mandos

  • Senior Member
  • *****
  • Posts: 5759
    • View Profile
    • http://politblogo.typepad.com/
Cron job
« Reply #12 on: November 10, 2006, 11:09:53 AM »
So...did it update automatically?

Debra

  • Administrator
  • Senior Member
  • *****
  • Posts: 11228
    • View Profile
    • April Reign
Cron job
« Reply #13 on: November 10, 2006, 11:11:14 AM »
no :?

And netfirms got back to me with a cut and paste of the useless tutorial on their site. Man I hate those people.
“Damaged people are dangerous. They know they can survive.” —  Josephine Hart

Mandos

  • Senior Member
  • *****
  • Posts: 5759
    • View Profile
    • http://politblogo.typepad.com/
Cron job
« Reply #14 on: November 10, 2006, 11:57:52 AM »
See, it doesn't even update when I run the script manually via the ssh prompt.   It updated once.  Then I deleted the post that it updated on ("test post").   Then I created two new test posts (on politblogo).  And it wouldn't update, even when I used the syntax that forces updates.  

I think it might be time to ask other experts like that Rad Geek guy who wrote the script.

 

Return To TAT