Article View: news.software.nntp
Article #4824Re: rnews locking
From: John Milburn
Date: Sun, 11 Feb 1996 00:00
Date: Sun, 11 Feb 1996 00:00
31 lines
1222 bytes
1222 bytes
rsalz@uunet.uu.net (Rich Salz) writes:
>In <4e1q28$4ic@piano.synapse.net> evanc@synapse.net (Evan Champion) writes:
>>I have a problem whereby when multiple rnews are running they have a
>>tendancy to eventually all start processing the exact same news
>>batches.
>Don't do that.
>Make rnews a shell script that calls shlock.
And a simple script it is.
-jem
#!/bin/sh
## =()<. @<_PATH_SHELLVARS>@>()=
. /inn/lib/innshellvars
LOCK=${LOCKS}/LOCK.rnewsU
trap 'rm -f ${LOCK} ; exit 1' 1 2 3 15
if ${NEWSBIN}/shlock -p $$ -f ${LOCK} ; then
${RNEWS} -U
exit 0
else
exit 0
fi
Technical Details
Message-ID:
<76523$yhby@xpat.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!not-for-mailReferences:
<4e1q28$4ic@piano.synapse.net> <4e6tef$uc@rodan.UU.NET>Show Full Headers
Complete Article Headers
Message-ID: <76523$yhby@xpat.com> Subject: Re: rnews locking Date: Sun, 11 Feb 1996 00:00:00 +0000 From: jem@xpat.com (John Milburn) References: <4e1q28$4ic@piano.synapse.net> <4e6tef$uc@rodan.UU.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.mbox.zip!not-for-mail X-Deja-AN: 138903557 Sender: jem@pls2.postech.ac.kr Organization: Xpat, Pohang, Korea Reply-to: jem@xpat.com (John Milburn) Newsgroups: news.software.nntp