[wallfire-users] (no subject)
Brought to you by:
eychenne
|
From: Herve E. <rv...@wa...> - 2005-03-10 23:21:32
|
kelbert Bcc:=20 Subject: Re: [wallfire-users] wflogs_report error when run from cron.dail= y Reply-To:=20 In-Reply-To: <111...@lo...> On Thu, Mar 10, 2005 at 10:07:15AM +0100, wolvie.news wrote: Hi, > __MARK__ Dumping FILTER: $start_time >=3D [] && $start_time < [ 1 day] > error before `[': syntax error > wflogs: Error: wrong filter expression. > run-parts: /etc/cron.daily/wflogs_report exited with return code 1 > KERN.LOG.0 ends with: > Mar 10 06:26:42 localhost kernel: blah... > (after logrotate) > KERN.LOG starts with: > Mar 10 06:28:06 localhost kernel: blah... > So at 06:27:37 kern.log is empty (or I'm wrong). Can this be considered > an bug? No, I don't think so... ;-) Log files can perfectly be empty when nothing was logged (yet). ;-) > Howto fix this not complicating the whole script too much? > Concatenating the INPUT_FILE* files into some temp file? Maybe... The > problem is that even if wflogs doesn't hit the exact time of log > rotation it still will not give the full daily report. > Hope this was somehow helpful and my deduction was right. You're right, this occurs when the file is empty, which breaks the script. I asked Jean-Michel Kelbert (Debian package maintainer) if he wanted to take care of that, as he wrote the script initially. I'm waiting for his feedback or patch, even if he seems quite busy these days. Thanks for your report, stay tuned. Herve --=20 _ (=B0=3D Herv=E9 Eychenne //) v_/_ WallFire project: http://www.wallfire.org/ |