Article View: news.software.nntp
Article #19212[Q] a channel goes berserk
From: Maurizio Codogno
Date: Fri, 11 Jul 1997 00:00
Date: Fri, 11 Jul 1997 00:00
28 lines
1227 bytes
1227 bytes
I am playing with my newsfeed to create a cancelbot for binaries in it.
hierarchy (yes, I know that there are many, but I want to learn how things
work!)
I have created a channel in my newsfeeds file:
newsbot!\
:!it.binari.*\
:Tc,Ap,>9000,WbnmN\
:/home/mau/coord/newsbot.sh
where newsbot.sh is a bash script which basically loops forever:
while [ x = x ] ; do
read SIZE FILE MSGID GRUPPI && {
[...]
}
done
It works, but every time I reload newsfeeds the process is not killed, and
it gets all of my CPU (fortunately I have two of them!). What should I do?
Switch to a program, instead of a channel? Add some check in order to
properly shut down the program?
TIA, .mau.
Technical Details
Message-ID:
<5q4vup$ag$1@beatles.cselt.it>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!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <5q4vup$ag$1@beatles.cselt.it> Subject: [Q] a channel goes berserk Date: Fri, 11 Jul 1997 00:00:00 +0000 From: mau@beatles.cselt.it (Maurizio Codogno) 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!not-for-mail X-Deja-AN: 256154212 Distribution: inet Organization: CSELT, Torino, Italia Newsgroups: news.software.nntp