Portal Home > Knowledgebase > Server Administration > 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
Add to Favourites
Print this Article