maks attems
2004-May-15 13:32 UTC
[Logcheck-devel] Re: [Logcheck-commits] CVS logcheck/src
hey todd, looked again at that return value check merge: @@ -557,7 +584,8 @@ # the same lines) and reduce CPU and memory usage afterwards. debug "Sorting logs" $SORT -m $TMPDIR/logoutput/* | uniq | sed -e 's/ *$//' \ - > $TMPDIR/logoutput-sorted + > $TMPDIR/logoutput-sorted \ + ||error "Could not output to $TMPDIR/logoutput-sorted Disk Full?" i guess that aboves introduces some wrong message, because that it can potenitally fail if the files in $TMPDIR/logoutput/* contains nothing. maybe it should be checked before as of aboves dir contains data, as we check afterwards if $TMPDIR/logoutput-sorted contains data like: for file in $TMPDIR/logoutput/*; do if [ -s $file ]; then $SORT $TMPDIR/logoutput/* | uniq | sed -e 's/ *$//' \ > $TMPDIR/logoutput-sorted \ || error "Could not output $file to $TMPDIR/logoutput-sorted Disk Full?" fi done (well the -m option should go to the other options.) a++ maks -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20040515/1fb0e921/attachment.pgp
maks attems
2004-May-15 13:36 UTC
[Logcheck-devel] Re: [Logcheck-commits] CVS logcheck/src
On Sat, 15 May 2004, maks attems wrote:> (well the -m option should go to the other options.)or better go away, as it's only a bit faster and uses more memory according to http://linux.wku.edu/~lamonml/algor/sort/merge.html greetings maks -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20040515/1802b74b/attachment.pgp
maks attems
2004-May-15 13:39 UTC
[Logcheck-devel] Re: [Logcheck-commits] CVS logcheck/src
On Sat, 15 May 2004, maks attems wrote:> for file in $TMPDIR/logoutput/*; do > if [ -s $file ]; then > $SORT $TMPDIR/logoutput/* | uniq | sed -e 's/ *$//' \^$file^ too much talking nonesende today, well off for the weekend. cu maks -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20040515/3f830b8d/attachment.pgp
Reasonably Related Threads
- Re: [Logcheck-commits] CVS logcheck/src
- (fwd) Bug#319169: logcheck: chokes on log files whose names contain spaces
- Re: [Logcheck-commits] CVS logcheck/docs
- Bug#149567: logcheck: wish it could split reports to multiple people
- How to escape exec command parameters?