Quoting Ronan Lucio <[EMAIL PROTECTED]>:
> Hello,
> 
> I'd like to make a report about the viruses catched by ClamAV.
> So, to do this I tried to read the clamav log file and create
> a txt file with the results, but, when I remove the clamd log
> file, ClamAV don't create it againg. ClamAV only create a new
> log file when I restart it.
> 
> So, If I want to leave the file blank each time I read it,
> should I restart clamd?
> 
> It's not so good to an automated process.
> 

A way that usually works to clear log files is:

cat /dev/null > clamd.log

This leaves a zero length file without deleting it.

HTH,
  Jeffrey

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to