diff --git a/catsit.in b/catsit.in index 82fdd68..a17b461 100644 --- a/catsit.in +++ b/catsit.in @@ -40,4 +40,12 @@ echo "$@" > "${CATSITD_PIPE}" test $quiet && exit sleep 0.1 -tail /var/log/messages | egrep 'calico|catsitd|litterbox|pounce|scooper' + +if [ "${2##*/*}" ] ; +then + egrep -a "calico|catsit|pounce" /var/log/messages | grep "${2}" | tail +fi +if [ ! "${2##*/*}" ] ; +then + egrep -a "calico|catsit|pounce" /var/log/messages | grep "${2#*/}" | tail +fi