Article View: news.software.nntp
Article #33775Re: Freenix?
From: Laszlo Vecsey
Date: Sun, 13 Dec 1998 00:00
Date: Sun, 13 Dec 1998 00:00
29 lines
1999 bytes
1999 bytes
Simon Lyall <simon@darkmere.gen.nz> wrote: > #!/bin/sh > /usr/bin/cp /spare/path.log /spare/pathlogs/path-`date +%d` > /usr/news/bin/ctlinnd drop pathgrepper! > /usr/bin/cat /dev/null > /spare/path.log > /usr/news/bin/ctlinnd begin pathgrepper! > /usr/bin/gzip -f /spare/pathlogs/path-`date +%d` > exit I like this, a 10-fold improvement is a great solution for now (until we get the summation script posted), just thought I'd point out a couple slight changes to improve the script.. #!/bin/tcsh -f set PATHLOG = "/usr/local/news/log/path.log" set PATHDATE = "/usr/local/news/log/inpaths/path-`date +%d`" /bin/mv $PATHLOG $PATHDATE /usr/local/news/bin/ctlinnd drop path! /usr/local/news/bin/ctlinnd begin path! /bin/gzip -f $PATHDATE exit The move instead of copy makes things consideraby quicker, clears the file away too, and throwing the date stuff into a variable avoids any foul play if the script is executed near midnight. - lv
Technical Details
Message-ID:
<751e5d$st3$1@Lucid.internexus.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-mailReferences:
<74nahf$4a7@darkmere.gen.nz> <74ngrk$cpu$1@sh1.ro.com> <74rsc3$75f$1@keltia.freenix.fr> <x5hfv2xwdl.fsf@delphi.local.easynet.de> <74sos7$g93$2@Lucid.internexus.net> <36720151.8F9714B5@flash.net> <74u1ej$npl@darkmere.gen.nz>Show Full Headers
Complete Article Headers
Message-ID: <751e5d$st3$1@Lucid.internexus.net>
Subject: Re: Freenix?
Date: Sun, 13 Dec 1998 00:00:00 +0000
From: Laszlo Vecsey <master-usenet@internexus.net>
References: <74nahf$4a7@darkmere.gen.nz> <74ngrk$cpu$1@sh1.ro.com> <74rsc3$75f$1@keltia.freenix.fr> <x5hfv2xwdl.fsf@delphi.local.easynet.de> <74sos7$g93$2@Lucid.internexus.net> <36720151.8F9714B5@flash.net> <74u1ej$npl@darkmere.gen.nz>
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: 421917352
Sender: Laszlo Vecsey <master@micro.internexus.net>
X-Complaints-To: abuse@internexus.net
X-Trace: Lucid.internexus.net 913587181 29603 206.152.14.2 (13 Dec 1998 22:13:01 GMT)
Organization: The Internet Nexus
User-Agent: tin/pre-1.4-981114 ("The Watchman") (UNIX) (Linux/2.1.131 (i586))
NNTP-Posting-Date: 13 Dec 1998 22:13:01 GMT
Newsgroups: news.software.nntp