🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #2277

Re: nnspew complains about space

#2277
From: Geoff Clare
Date: Fri, 03 Jan 1992 13:22
39 lines
1784 bytes
woody@udcf.glasgow.ac.uk (I.Woodrow) writes:

>>>>/usr/local/lib/nn/nnspew
>>>>
>>>>produced the following output:
>>>>
>>>>sort: write error while sorting: No space left on device

>I was also getting this message but cured by changing the nnspew script.
>Using the -T option in sort, you can get the sort temporary files to hang out
>anywhere you want.  Stick them somewhere where there's plenty space.

Better still, change nnspew so that it uses a pipe instead of the first
temporary file.  The existing script looks something like:

	if nn -SPEW </dev/null > tmp1
	then
		if sort -u tmp1 > tmp2
		then
			mv tmp2 subjects
			chmod 644 subjects
		fi
	fi

so change this to look like:

	if nn -SPEW </dev/null | sort -u > tmp2
	then
		mv tmp2 subjects
		chmod 644 subjects
	fi

and it will need less than half as much disk space as before.

[ I missed the beginning of this thread, so I apologise if this has been
  suggested already. ]
-- 
Geoff Clare <gwc@root.co.uk>  (USA UUCP-only mailers: ...!uunet!root.co.uk!gwc)
UniSoft Limited, London, England.   Tel: +44 71 729 3773   Fax: +44 71 729 3273
Technical Details
Message-ID: <1992Jan3.132250.13441@root.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!mcsun!uknet!pyrltd!root44!gwc
References: <mathieu.693243122@sun470> <max.693364467@isis> <1991Dec31.132500.11820@udcf.glasgow.ac.uk>

Show Full Headers
Complete Article Headers
Message-ID: <1992Jan3.132250.13441@root.co.uk>
Subject: Re: nnspew complains about space
Date: Fri, 03 Jan 1992 13:22:50 +0000
From: gwc@root.co.uk (Geoff Clare)
References: <mathieu.693243122@sun470> <max.693364467@isis> <1991Dec31.132500.11820@udcf.glasgow.ac.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!mcsun!uknet!pyrltd!root44!gwc
Newsgroups: news.software.nn
Keywords: nnspew
Organization: UniSoft Ltd., London, England
Lines: 39