Portal Home > Knowledgebase > Server Administration > Check for Spam


Check for Spam




SSH:

Create Script #1

#!/bin/sh
SPAMWORDS="Verify Your PayPal Account"
for SPAMMER in `ls /home`
do
echo "Checking $SPAMMER for $SPAMWORDS"
/bin/grep -r "$SPAMWORDS" /home/$SPAMMER >> spamcheck.txt
done
echo "Check spamcheck.txt for output of check"

save as spamcheck and run: sh spamcheck

Create Script #2

#!/bin/sh
SPAMWORDS="Verify Your PayPal Account"
for SPAMMER in `ls /home`
do
echo "Checking $SPAMMER for $SPAMWORDS"
/bin/grep -r "$SPAMWORDS" /home/$SPAMMER >> spamcheck.txt
done
echo "Check spamcheck.txt for output of check"

chmod 700 spamcheck

Run:

./spamcheck

Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Update VPS Quota (Views: 1224)
O/S Info (Views: 1231)
Check Open Ports (Views: 1325)
Linux Bash Commands (Views: 1878)