From owner-freebsd-questions Fri Aug 2 8:59: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B4A8337B400 for ; Fri, 2 Aug 2002 08:59:04 -0700 (PDT) Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114]) by mx1.FreeBSD.org (Postfix) with SMTP id AC4FA43E4A for ; Fri, 2 Aug 2002 08:59:02 -0700 (PDT) (envelope-from neuhauser@bellavista.cz) Received: (qmail 25900 invoked from network); 2 Aug 2002 15:59:01 -0000 Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50) by mail.thundernet.cz with SMTP; 2 Aug 2002 15:59:01 -0000 Received: by freepuppy.bellavista.cz (Postfix, from userid 1001) id B59781E7; Fri, 2 Aug 2002 17:59:00 +0200 (CEST) Date: Fri, 2 Aug 2002 17:59:00 +0200 From: Roman Neuhauser To: freebsd-questions@freebsd.org Subject: Re: Script help Message-ID: <20020802155900.GH52563@freepuppy.bellavista.cz> Mail-Followup-To: freebsd-questions@freebsd.org References: <3.0.5.32.20020802094620.02ba28a8@mail.sage-one.net> <20020802155258.GG52563@freepuppy.bellavista.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020802155258.GG52563@freepuppy.bellavista.cz> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Fri, 2 Aug 2002 17:52:58 +0200 > From: Roman Neuhauser > To: freebsd-questions@freebsd.org > Subject: Re: Script help > > > Date: Fri, 02 Aug 2002 09:46:20 -0500 > > To: freebsd-questions@freebsd.org > > From: "Jack L. Stone" > > Subject: Script help > > > > When placing blocks on some ISPs as being sources of spam floods, one > > consideration has to be if it affects a number of innocent members on > > various vhost majordomo mail lists so they may have passes. > > > > I know I can find a list of any that would be affected by manually doing this: > > grep spammer1.net /mj/vhost1.com/lists/list1 > > grep spammer1.net /mj/vhost2.org/lists/list2 > > grep spammer1.net /mj/vhost2.org/lists/list2-digest > > ..etc, etc. > > > > ..but, doing that for each list takes a lot of time and some type of > > script would sure speed up things, like this command that runs a script to > > check the above 3 mail lists all at once: > > root@myserver>> check_all_lists > > output = goodguy1@spammer1.net > > goodguy2@spammer1.net > > goodguy3@spammer1.net > > grep -Fl spammer1.net /mj/*/lists/* hm. if you had enough (like 3000) vhosts you could exceed your shell's (or is it kernel? anyone?) command line argument count limit. if that's the case, you could (not tested): #!/bin/sh for d in /mj/*; do grep -Flr spammer1.net $d/lists done -- FreeBSD 4.6-STABLE 5:55PM up 3 days, 1:31, 10 users, load averages: 0.00, 0.00, 0.00 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message