search for: logfiles_list

Displaying 2 results from an estimated 2 matches for "logfiles_list".

2008 Jan 30
0
Shell Expansion in logcheck.logfiles
...tically by logcheck. To that end I patched the logcheck script as follows --- logcheck.orig 2008-01-30 09:31:48.000000000 +0800 +++ logcheck 2008-01-30 09:33:17.000000000 +0800 @@ -665,7 +665,9 @@ || error "Could not mkdir for log files" if [ ! $LOGFILE ] && [ -r $LOGFILES_LIST ]; then for file in $(egrep --text -v "(^#|^[[:space:]]*$)" $LOGFILES_LIST); do - logoutput "$file" + for line in $(ls -1 "$file"); do + logoutput "$line" + done done elif [ $LOGFILE ]; then if [ -f $LOGFILE ] &...
2005 Jul 20
0
(fwd) 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...