Article View: news.software.nntp
Article #80003Cron job for pullnews
From: John F. Morse
Date: Sat, 10 Jan 2009 05:25
Date: Sat, 10 Jan 2009 05:25
40 lines
2326 bytes
2326 bytes
I have pullnews working fine when using a manual command to pull one newsgroup from one server.. What is the recommended way to set up a cron job to run pullnews every hour? I would presume the owner:group would need to be news:news since .pullnews is owned by the user news. Would the cron job file be located in /var/spool/news (Debian), or in one of the /etc directories for cron jobs? I'm going to take a guess and say it should be added to /etc/cron.d/inn2 and be written like the following: 15 * * * * news /var/spool/news/.pullnews or possibly simplified as: 15 * * * * news ./.pullnews Both of those give me a permission denied error (as news), but a plain "pullnews" works fine. So, maybe it should be: 15 * * * * news pullnews This last cron idea appears to have worked (although there were no new articles available for pulling). /var/log/syslog provided the following: Jan 9 23:15:01 localhost /USR/SBIN/CRON[1585]: (news) CMD ( pullnews) Jan 9 23:15:03 localhost innd: localhost connected 36 streaming allowed Jan 9 23:15:03 localhost innd: localhost:36 closed seconds 0 accepted 0 refused 0 rejected 0 duplicate 0 accepted size 0 duplicate size 0 Comments? -- John
Technical Details
Message-ID:
<gk9bgv$1m0$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!news.musoftware.de!wum.musoftware.de!feeder.erje.net!news.motzarella.org!motzarella.org!optima7.xanadu-bbs.net!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <gk9bgv$1m0$1@optima7.xanadu-bbs.net> Subject: Cron job for pullnews Date: Fri, 09 Jan 2009 23:25:51 -0600 From: "John F. Morse" <xanadu.bbs@example.invalid> 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!news.musoftware.de!wum.musoftware.de!feeder.erje.net!news.motzarella.org!motzarella.org!optima7.xanadu-bbs.net!not-for-mail Newsgroups: news.software.nntp Organization: Xanadu BBS Lines: 40 Reply-To: dont.bother NNTP-Posting-Host: wintergreen18.xanadu-bbs.net Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: optima7.xanadu-bbs.net 1231565152 1728 192.168.89.180 (10 Jan 2009 X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Sat, 10 Jan 2009 05:25:52 +0000 (UTC) User-Agent: Thunderbird 1.5.0.14ubu (X11/20090105)