🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #7875

Slurp Q: Locking?

#7875
From: News Administrator
Date: Wed, 22 May 1996 00:00
28 lines
1532 bytes
Hello,

I'm about to run slurp 1.10 off cron pretty often. I was
a bit concerned to find out that slurp does not lock in
any way; so that if, for example, I do "slurp server-a"
every 15 minutes, I might end up with two parallel instances
of slurp running alongside.

Why is this bad? It seems that the slurp.<hostname> file will
be damaged in such a case. Note that this file is bring written
with date/time for next pull (in good weather), or with the
same plus a long list of unprocessed messageids (in case the
connection breaks prematurely). Two instances of slurp,
I feel, will corrupt this file and ensure lost data.

What am I missing? Am I completely off base here? If not,
I will probably have to hack a small script as an envelope
for slurp, something that will probably use shlock or something.

Thanks in advance!
--
Doron Shikmoni (Israeli Newsmaster)		E-Mail: P85025@vm.biu.ac.il
Mgr., Communications and Networking		Tel:	+972-3-5318783
Bar-Ilan University				Fax:	+972-3-5344446
Israel

Technical Details
Message-ID: <4nusba$l3c@cnn.cc.biu.ac.il>
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

Show Full Headers
Complete Article Headers
Message-ID: <4nusba$l3c@cnn.cc.biu.ac.il>
Subject: Slurp Q: Locking?
Date: Wed, 22 May 1996 00:00:00 +0000
From: news@cnn.cc.biu.ac.il (News Administrator)
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: 156081300
Organization: Bar-Ilan University, Ramat-Gan, Israel
Newsgroups: news.software.nntp