Article View: news.software.nntp
Article #61557Re: Fetching news to INN using newsx
From: Jeffrey M. Vinocur
Date: Tue, 22 Oct 2002 10:37
Date: Tue, 22 Oct 2002 10:37
20 lines
1805 bytes
1805 bytes
In article <8cbe3813.0210220151.2d36011b@posting.google.com>, JohnCD <wenoi6@hotmail.com> wrote: > >#!/bin/sh >/sbin/chkconfig innd || exit 0 >su - news -c >"unset LANG; unset LC_COLLATE; newsx news.xs4all.nl --verbose >>/tmp/bjorn" >"unset LANG; unset LC_COLLATE; /usr/bin/rnews -U" If you run the above script (not out of cron), does it work? I don't know what wordwrapping was introduced, but I think you'd be much better off putting the newsx/rnews commands in a separate script (say, cron.daily.news) and having cron just run that script with `su - news -c cron.daily.news` (or you could just use the news user's crontab, since your system probably does support per-user crontabs).
Technical Details
Message-ID:
<ap39ok$kq4$2@puck.litech.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mailReferences:
<8cbe3813.0210210215.5d4c7d13@posting.google.com> <ap15cd$7n0$3@puck.litech.org> <ap1eos$c1p$1@orion.bofh.hanau.net> <8cbe3813.0210220151.2d36011b@posting.google.com>Show Full Headers
Complete Article Headers
Message-ID: <ap39ok$kq4$2@puck.litech.org> Subject: Re: Fetching news to INN using newsx Date: Tue, 22 Oct 2002 10:37:08 +0000 From: jeff@litech.org (Jeffrey M. Vinocur) References: <8cbe3813.0210210215.5d4c7d13@posting.google.com> <ap15cd$7n0$3@puck.litech.org> <ap1eos$c1p$1@orion.bofh.hanau.net> <8cbe3813.0210220151.2d36011b@posting.google.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.ems.psu.edu!news.litech.org!not-for-mail Newsgroups: news.software.nntp Organization: Litech Systems Design Lines: 19 Sender: jeff@litech.org NNTP-Posting-Host: puck.litech.org X-Trace: puck.litech.org 1035283028 21316 208.48.41.224 (22 Oct 2002 10:37:08 GMT) X-Complaints-To: usenet@litech.org NNTP-Posting-Date: Tue, 22 Oct 2002 10:37:08 +0000 (UTC) X-Newsreader: trn 4.0-test76 (Apr 2, 2001) Originator: jeff@litech.org (Jeffrey M. Vinocur)