/etc/fwanalog/fwanalog.sh uses "tail -1", but it has been deprecated, so it should be "tail -n 1". -------------- # Find the new lines since the last invocation if [ -s $outdir/fwanalog.all.log ]; then # there is already an old log - find its last line and use it # to determine the new contents of the grepped/converted file $grep . $outdir/fwanalog.all.log \ | tail -1 \ | $sed 's/[^a-zA-Z0-9 _-]/./g' \ | $sed 's#^\(.*\)$#1,/^\1$/d#' \ > $outdir/match_last_line.sed # match_last_line.sed now contains the last line in reg$ # it can be searched in the new file. Most non-alphanum$ # have been replaced with . so they don't act as metach$ $grep . $outdir/fwanalog.all.log \ | tail -1 \ | $sed 's/[^a-zA-Z0-9 _-]/./g' \ > $outdir/match_last_line.pattern # create the regexp for grep -------------- Reproducible: Always Steps to Reproduce: 1. /etc/fwanalog/fwanalog.sh
will fix by end of week - overseas at the moment
OK, we have time before the option gets removed :)
Looks fixed in the cvs version so I'm just going to wait till a version bump. ok? Well done for being a keen eye.
Thank you. We can close we there's a version bump.
closed as requested