]> git.pld-linux.org Git - packages/chkrootkit.git/blobdiff - chkrootkit-check
- redirect stderr -> stdout (generating two emails in cron)
[packages/chkrootkit.git] / 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.113727 seconds and 4 git commands to generate.