From: short <> Date: Mon, 16 May 2005 05:16:02 +0000 (+0000) Subject: +Prevent binary files like 'wtmp' or 'utmp': /.tmp$ X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=6a06dca7279826533fe91833f7eeb90013a30ffc +Prevent binary files like 'wtmp' or 'utmp': /.tmp$ --- diff --git a/bin/taillog b/bin/taillog index a1e72e5..9c7a0be 100755 --- a/bin/taillog +++ b/bin/taillog @@ -1,2 +1,2 @@ #! /bin/bash -tail -fn0 `file $(find /var/log -name ntpstats -prune -o -type f -print)|grep -v 'data$'|sed 's/:.*//'|grep -v '^/var/log/squid/store.log$'` "$@" +tail -fn0 `file $(find /var/log -name ntpstats -prune -o -type f -print)|grep -v 'data$'|sed 's/:.*//'|grep -v '^/var/log/squid/store.log$\|/.tmp$'` "$@"