maximilian attems
2005-Jul-20 16:36 UTC
(fwd) [Logcheck-devel] Bug#319169: logcheck: chokes on log files whose names contain spaces
i did some cleanup first, but now i'm choking on a much earlier stage than i first thought. -- logcheck for file in $(egrep --text -v "(^#|^[[:space:]]*$)" $LOGFILES_LIST); do logoutput "$file" done -- that falls apart if you insert in /etc/logcheck/logcheck.logfiles a line like /var/log/auth .log even if you escape it with "", which is a valid file name. hmm i'm not that fond of files with spaces inside, but i'd like to fix taht bug. atm found no way to process aboves list in way that each line argument is one arg for logoutput. happy to hear your thoughts. -- maks
Apparently Analagous Threads
- Re: [Logcheck-commits] CVS logcheck/src
- Shell Expansion in logcheck.logfiles
- Re: [Logcheck-commits] CVS logcheck/docs
- Bug#149567: logcheck: wish it could split reports to multiple people
- Bug#336265: logrotate detection, possible attack not checked by logcheck