[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [raq4] how to remoge all formmail.pl from a server
- Subject: Re: [cobalt-users] [raq4] how to remoge all formmail.pl from a server
- From: Andy Brown <andy.brown@xxxxxxxxxxxxx>
- Date: Wed Jan 8 04:04:00 2003
- Organization: Interv8 Ltd
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
<snip>
On Wednesday 08 January 2003 11:33 am, Bob Lenaerts wrote:
> Hi All,
>
> We've hosted more then 300 sites on 1 raq.
> Now they are spamming via formmail.pl and formmail.cgi
> I really cant get into every vhost and remove the formmail.pl
>
> How can I use 1 single command to RM ALL the formmail.pl's ?
</snip>
Quick and dirty script time::
-----------------------------------------------------------------------------------
#!/bin/sh
cd /home/sites/
FILESTOFIX=`cd /home/sites;find |grep formmail.pl`
for i in $FILESTOFIX; do
rm $i
echo "Deleting $i"
done
echo "All done!"
-----------------------------------------------------------------------------------
That will go into /home/sites, find all the formmail.pl files and delete them.
TEST IT FIRST AS NO GUARANTEE!!
Regards,
Andy Brown
andy@xxxxxxxxxx
http://www.raqpak.com/