Article View: news.software.nntp
Article #80005Re: Cron job for pullnews
From: John F. Morse
Date: Sat, 10 Jan 2009 07:32
Date: Sat, 10 Jan 2009 07:32
95 lines
4273 bytes
4273 bytes
Ray Banana wrote: > Please read the pullnews manpage. .pullnews is the default config file > which is located in the home directory of the user who runs > pullnews. The pullnews executable is in /usr/lib/news/bin/ in a Debian > environment . > Already did that Ray, and the config file was edited, and works fine when pullnews is manually ran. It also works now that I've added pullnews to the /etc/cron.d/inn2 file. ;-) My earlier post was created on the fly, as I was thinking and testing. I should have edited out that confusing part. > As /etc/cron.d/inn2 is part of the Debian INN package, I would leave it > alone, just to be safe. As I prefer to have all site-specific > INN-related jobs in one central crontab rather than scattered across > several user crontabs, I would put it in a separate crontab in > /etc/cron.d/. > That makes good sense. Thanks. >> 15 * * * * news pullnews >> > > Please keep in mind that the $PATH environment of a crontab is different > from the $PATH environment of the same user's login shell, so to be > safe, always use the full path for executables: > > 15 * * * * news /usr/lib/news/bin/pullnews Will do. In this case, the /etc/cron.d/inn2 starts with: PATH=/usr/lib/news/bin:/sbin:/bin:/usr/sbin:/usr/bin So I'm set -- unless I move the job to a new file in the /etc/cron.d directory. If I want pullnews to run more often than once an hour, say, every 30 minutes, how would I create that? Perhaps additional lines in the /etc/cron.d/ file, such as: 15 * * * * news /usr/lib/news/bin/pullnews 45 * * * * news /usr/lib/news/bin/pullnews Or would something like the following be more proper?: 15,45 * * * * news /usr/lib/news/bin/pullnews Or even: */15 * * * * news /usr/lib/news/bin/pullnews I don't need an e-mail message every time pullnews runs. Does the -q flag stop the e-mail generation? 15 * * * * news /usr/lib/news/bin/pullnews -q What would you suggest I use to push this group back to Usenet via my ISP? Pullnews(8) states: "pullnews is designed for very small sites and is not meant for reverse-feeding large feeds." The one group's traffic is around 25 articles per day, so it isn't a large feed. I could see that it might be possible to manually run pullnews to feed toward the ISP, but I don't know how the .pullnews config file could be written with the -s option. Perhaps it would need to be ran on a different box? I used to use RumorMill on a Mac to pull and push (as a mode reader) to a couple of ISPs, but I don't want to support the power company any more than necessary. I know suck is available, but for just one group it is overkill. -- John No Microsoft, Apple, AT&T, Intel, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message. The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.
Technical Details
Message-ID:
<gk9iu6$3nh$1@optima7.xanadu-bbs.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!optima7.xanadu-bbs.net!not-for-mailReferences:
<gk9bgv$1m0$1@optima7.xanadu-bbs.net> <807i53r7nl.fsf@banana.shacknet.nu>Show Full Headers
Complete Article Headers
Message-ID: <gk9iu6$3nh$1@optima7.xanadu-bbs.net> Subject: Re: Cron job for pullnews Date: Sat, 10 Jan 2009 01:32:22 -0600 From: "John F. Morse" <xanadu.bbs@example.invalid> References: <gk9bgv$1m0$1@optima7.xanadu-bbs.net> <807i53r7nl.fsf@banana.shacknet.nu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.motzarella.org!motzarella.org!optima7.xanadu-bbs.net!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 95 Reply-To: dont.bother NNTP-Posting-Host: wintergreen18.xanadu-bbs.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: optima7.xanadu-bbs.net 1231572742 3825 192.168.89.180 (10 Jan 2009 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Sat, 10 Jan 2009 07:32:22 +0000 (UTC) User-Agent: Thunderbird 1.5.0.14ubu (X11/20090105) In-Reply-To: <807i53r7nl.fsf@banana.shacknet.nu>