CronJob Plug in

Creating and modifying plugins.
Post Reply
dahoove
Posts: 2
Joined: Wed Jan 03, 2007 4:44 am

CronJob Plug in

Post by dahoove »

Newbie needs help getting the cronjob plug in work with the Popfetcher plug in. I have Popfetcher working on my 1.1 version of Serendipity blog which is being hosted on a Go Daddy linux server. I think I have the CronJob plug in installed properly but have no clue on how to config it. What I want is for job to run the Popfetcher external link every 2 or 3 hours. The way the Popfetcher doc describes it is
*/30 * * * * /usr/local/bin/lynx -dump http://www.myblog.com/serendipity/index ... ECRET_WORD >> /htdocs/serendipity/uploads/0000log.txt 2>&1

Where do I put this?

Thanks in advance.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: CronJob Plug in

Post by garvinhicking »

Hi!

Once the cronjob plugin is installed you should be able to configure the popfetcher plugin and there set on which periodic schedule that plugin should be executed. Do you see that config option?

The cronjob plugin is not as flexible as real cronjobs are, because technically that's not possible.

Best regardss
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
dahoove
Posts: 2
Joined: Wed Jan 03, 2007 4:44 am

Post by dahoove »

I don't know how I missed that. Guess the wife is correct when she says I'm blind as a bat sometimes.

Thanks
ax11
Regular
Posts: 8
Joined: Fri Nov 09, 2007 1:05 am
Location: Berlin, Germany
Contact:

correct line for crontab

Post by ax11 »

Code: Select all

5  * * * * /usr/bin/wget -O /dev/null  http://blog.ax11.de/index.php?serendipity[cronjob]=all>/dev/null 2>&1
will work on Linux systems. (Check, if wget is installed!) The original script misses an asterisk, which will cause crontab -e to fail, doesn't contain the right path for wget, which is awful and will send an email anytime it finishes, which is annoying.

Update: Mine was not much better ;) Please notice the "-O /dev/null" after "wget" that was missing.
BTW: Ich heisse Tom - "ax11" klingt halt doch etwas seltsam im Gebrauch zwischen Menschen.
Jabber: ax11@jabber.ccc.de
Post Reply