🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Empty Mix Error.Log

#292202
From: Anonymous
Date: Sat, 15 Apr 2017 23:25
12 lines
1395 bytes
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.
Technical Details
Message-ID: <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!news.usenet.farm!..!..!not-for-mail
References: <1b259f10c371cca4e7bd2c94d1e5c203@hoi-polloi.org>

Show Full Headers
Complete Article Headers
Message-ID: <3la5fc12tbm1nctn1agvlud9vfp0pv9698@news.stray.cat.edu>
Subject: Re: Empty Mix Error.Log
Date: Sat, 15 Apr 2017 19:25:18 -0400
From: Anonymous
References: <1b259f10c371cca4e7bd2c94d1e5c203@hoi-polloi.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
Newsgroups: alt.privacy.anon-server
Lines: 13
NNTP-Posting-Host: sly-ocelot.stray.cat.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Keywords: None
X-Face: ,l9N8F.A~!GX.Yz#yYAZtvpk7aF(an!BVo3%Xb,`Q]*$Oh'RtXB5n4iisiGw8
    l3nY)lnh(G]9[ud;QeX:W}'r)1F9gEQD4o::mBU9JZAXI\y_0t$P#*/o|!TSG9OtqY+`
    NX>cpjf?w~w1RY_}M5731El52pUnI}OaRi~PA+n[fiO>=TS|2h~f%c9zy]*i2LajTWLJ
    _X^1No"P#D_(t*t-5n]wW1
User-Agent: nn/6.7.3