Thread View: news.software.nntp
9 messages
9 total messages
Started by JohnCD
Mon, 21 Oct 2002 10:15
Fetching news to INN using newsx
Author: JohnCD
Date: Mon, 21 Oct 2002 10:15
Date: Mon, 21 Oct 2002 10:15
22 lines
1504 bytes
1504 bytes
Hello all, I setup a newsserver (INN) under Red Hat 7.3. I use newsx to fetch news to INN. Everything seems to work fine, except two things: 1. Newsx is not fetching news automatically to INN. I've added a "newsx news.xs4all.nl" to the /etc/cron.hourly/inn-news-rnews. But when I run the job, it almost ends directly and nothing will be downloaded. Everything works fine when I run "newsx news.xs4all.nl" and "rnews -U" manually. 2. Newsx does not download or INN does not show older messages. When I fetch articles only articles of a few days old are shown in my newsreader. Please if you have any information reply to the group. THANKS!@!@!@ JohnCD
Re: Fetching news to INN using newsx
Author: Jeffrey M. Vinocur
Date: Mon, 21 Oct 2002 15:10
Date: Mon, 21 Oct 2002 15:10
31 lines
2118 bytes
2118 bytes
In article <8cbe3813.0210210215.5d4c7d13@posting.google.com>, JohnCD <wenoi6@hotmail.com> wrote: > >1. Newsx is not fetching news automatically to INN. I've added a >"newsx news.xs4all.nl" to the /etc/cron.hourly/inn-news-rnews. But >when I run the job, it almost ends directly and nothing will be >downloaded. Everything works fine when I run "newsx news.xs4all.nl" >and "rnews -U" manually. Did you put both commands in cron? I can't see any reason why running it out of cron would change anything. Oh, the permissisions might be funky -- does newsx work when you run it as whatever user your cron job runs as? (You probably shouldn't be running as root anyway, of course.) >2. Newsx does not download or INN does not show older messages. When I >fetch articles only articles of a few days old are shown in my >newsreader. Examine artcutoff in inn.conf. (Note that if newsx has tried to fetch the articles once and INN has rejected them, INN will continue to reject them until they expire out of the history database. Or you can wipe history and start over.) -- Jeffrey M. Vinocur jeff@litech.org
Re: Fetching news to INN using newsx
Author: Franz Georg Köhler
Date: Mon, 21 Oct 2002 17:50
Date: Mon, 21 Oct 2002 17:50
17 lines
1746 bytes
1746 bytes
Jeffrey M. Vinocur <jeff@litech.org> wrote: > In article <8cbe3813.0210210215.5d4c7d13@posting.google.com>, > JohnCD <wenoi6@hotmail.com> wrote: >> >>1. Newsx is not fetching news automatically to INN. I've added a >>"newsx news.xs4all.nl" to the /etc/cron.hourly/inn-news-rnews. But >>when I run the job, it almost ends directly and nothing will be >>downloaded. Everything works fine when I run "newsx news.xs4all.nl" >>and "rnews -U" manually. > > Did you put both commands in cron? I can't see any reason why > running it out of cron would change anything. Because 'newsx' isn't in cron's path?
Re: Fetching news to INN using newsx
Author: JohnCD
Date: Tue, 22 Oct 2002 09:51
Date: Tue, 22 Oct 2002 09:51
29 lines
2107 bytes
2107 bytes
yes newsx is in my cron. My inn-cron-rnews file look like this: #!/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" Forgot to say. There are a lot of messages if /var/spool/nes/incoming/bad any suggestions? Franz Georg K�hler <an7ilb$bk0f4$2@gigabell.de> wrote in message news:<ap1eos$c1p$1@orion.bofh.hanau.net>... > Jeffrey M. Vinocur <jeff@litech.org> wrote: > > In article <8cbe3813.0210210215.5d4c7d13@posting.google.com>, > > JohnCD <wenoi6@hotmail.com> wrote: > >> > >>1. Newsx is not fetching news automatically to INN. I've added a > >>"newsx news.xs4all.nl" to the /etc/cron.hourly/inn-news-rnews. But > >>when I run the job, it almost ends directly and nothing will be > >>downloaded. Everything works fine when I run "newsx news.xs4all.nl" > >>and "rnews -U" manually. > > > > Did you put both commands in cron? I can't see any reason why > > running it out of cron would change anything. > > Because 'newsx' isn't in cron's path?
Re: Fetching news to INN using newsx
Author: 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).
Re: Fetching news to INN using newsx
Author: fd
Date: Tue, 22 Oct 2002 10:47
Date: Tue, 22 Oct 2002 10:47
31 lines
2250 bytes
2250 bytes
I know it is better to do it in in two seperate sripts, but I need to run newx BEFORE rnews. If I put it into seperate scripts it is possible the two scripts runs together or in a wrong order. "Jeffrey M. Vinocur" <jeff@litech.org> wrote in message news:ap39ok$kq4$2@puck.litech.org... > 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). > >
Re: Fetching news to INN using newsx
Author: Thierry Thomas
Date: Tue, 22 Oct 2002 17:13
Date: Tue, 22 Oct 2002 17:13
9 lines
1640 bytes
1640 bytes
On Tue, 22 Oct 2002 12:47:38 +0200, fd wrote: > I know it is better to do it in in two seperate sripts, but I need to run > newx BEFORE rnews. If I put it into seperate scripts it is possible the two > scripts runs together or in a wrong order. What about `newsx --rnews'? -- Th. Thomas.
Re: Fetching news to INN using newsx
Author: Remco Blaakmeer
Date: Tue, 22 Oct 2002 17:38
Date: Tue, 22 Oct 2002 17:38
13 lines
1830 bytes
1830 bytes
On Tue, 22 Oct 2002 10:47:38 GMT, "fd" <bjorn.braker@edcubed.com> wrote: > I know it is better to do it in in two seperate sripts, but I need to run > newx BEFORE rnews. If I put it into seperate scripts it is possible the two > scripts runs together or in a wrong order. Even better, run newsx with the --rnews option. Newsx will then pipe the articles through rnews, instead of writing them to a file, so you won't need to call rnews after newsx. This works very well for me. Remco -- remco3: 19:35:01 up 2 days, 18:16, 9 users, load average: 2.16, 2.13, 2.09
Re: Fetching news to INN using newsx
Author: Jeffrey M. Vinocur
Date: Tue, 22 Oct 2002 20:00
Date: Tue, 22 Oct 2002 20:00
12 lines
1498 bytes
1498 bytes
In article <ap3ahd$lov$1@localhost.localdomain>, fd <bjorn.braker@edcubed.com> wrote: >I know it is better to do it in in two seperate sripts, but I need to run >newx BEFORE rnews. If I put it into seperate scripts it is possible the two >scripts runs together or in a wrong order. I meant, put them both in one script. -- Jeffrey M. Vinocur jeff@litech.org
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads