From 6f34ae1cb74cff0478acd7ad3cbd8fed548880fe Mon Sep 17 00:00:00 2001 From: tiwek Date: Sat, 23 Aug 2003 10:34:21 +0000 Subject: [PATCH] - redirect stderr -> stdout (generating two emails in cron) Changed files: chkrootkit-check -> 1.5 --- chkrootkit-check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chkrootkit-check b/chkrootkit-check index 61a98d1..76d2608 100644 --- a/chkrootkit-check +++ b/chkrootkit-check @@ -9,7 +9,7 @@ SYSTEM=`hostname` cd /usr/bin/ echo -n "Generated with: " > /var/tmp/$$ /usr/bin/chkrootkit -V 2>> /var/tmp/$$ -/usr/bin/chkrootkit | /bin/egrep -v '(not (infected|found|promisc)|nothing (found|detected|deleted)|no suspect files|ROOTDIR is)' >> /var/tmp/$$ +/usr/bin/chkrootkit 2>&1 | /bin/egrep -v '(not (infected|found|promisc)|nothing (found|detected|deleted)|no suspect files|ROOTDIR is)' >> /var/tmp/$$ LIN=`grep -c . /var/tmp/$$` if [ "$LIN" -gt "1" ]; then mail -s "CHKROOTKIT $SYSTEM $DATA" $CHKROOTKIT_MAILTO < /var/tmp/$$ -- 2.44.0