]> git.pld-linux.org Git - packages/chkrootkit.git/commitdiff
- redirect stderr -> stdout (generating two emails in cron)
authortiwek <tiwek@pld-linux.org>
Sat, 23 Aug 2003 10:34:21 +0000 (10:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    chkrootkit-check -> 1.5

chkrootkit-check

index 61a98d196f30bcedd16d33162bf0d2e2e2acf22f..76d2608612f05de861bbeff5249fdfd8f3f6536e 100644 (file)
@@ -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/$$
This page took 0.08992 seconds and 4 git commands to generate.