🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #292210

Re: Empty Mix Error.Log

#292210
From: Anonymous
Date: Sun, 16 Apr 2017 00:13
18 lines
1577 bytes
On Sat, 15 Apr 2017 19:25:18 -0400, you wrote:
>
> On Sun, 16 Apr 2017 00:59:31 +0200, Anonymous <anonymous@hoi-polloi.org> wrote:
>
> >What is the best command to empty the contents of /Mix/error.log
> >file at midnight every night via a cron job?
>
> I would let logrotate do that for you. Use a rotate 0 specification.
>
> Or I suppose you could try something like:
>
> rm -f /Mix/error.log && touch /Mix/error.log >/dev/null 2>&1
>
> Just be sure you use the full path to the file if what you posted is not it.

Thanks I'll use the logrotate option. My rotate setting was set for 
1 and the log file size was set to 50k. I reduced the file size to 
20k and changed the rotate setting to 0. Much appreciated.
Technical Details
Message-ID: <5412ce14c81d3890183501136eb69c61@mail.killinit.pw>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <1b259f10c371cca4e7bd2c94d1e5c203@hoi-polloi.org> <3la5fc12tbm1nctn1agvlud9vfp0pv9698@news.stray.cat.edu>

Show Full Headers
Complete Article Headers
Message-ID: <5412ce14c81d3890183501136eb69c61@mail.killinit.pw>
Subject: Re: Empty Mix Error.Log
Date: Sun, 16 Apr 2017 00:13:51 +0000
From: Anonymous <mix@mail.killinit.pw>
References: <1b259f10c371cca4e7bd2c94d1e5c203@hoi-polloi.org> <3la5fc12tbm1nctn1agvlud9vfp0pv9698@news.stray.cat.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
X-Received-Bytes: 1561
X-Received-Body-Crc: 3946757901
Newsgroups: alt.privacy.anon-server
Comments: This message did not originate from the Sender address above. It was remailed automatically by anonymizing remailer software. Please report problems or inappropriate use to the remailer administrator at <abuse@mail.killinit.pw>.