LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Parts/Attachments: text/plain (540 bytes) , scripts (471 bytes)
Print Reply
Mime-Version:
1.0
Sender:
LISTSERV give-and-take forum <[log in to unmask]>
Subject:
From:
Jim Toth <[log in to unmask]>
Date:
Thu, 27 Jul 2000 12:22:53 -0400
In-Reply-To:
<16773DD1E877D21182AC0008C7459C1709B4AF35@ABA-EXCH01>; from [log in to unmask] on Thu, Jul 27, 2000 at 09:55:48AM -0500
Content-Type:
multipart/mixed; boundary="G4iJoqBmSsgzjUCe"
Reply-To:
LISTSERV give-and-take forum <[log in to unmask]>
On Thu, Jul 27, 2000 at 09:55:48AM -0500, Ahn, Chang
([log in to unmask]) said:
> Is there anyway to query for the owner of a list.  I have new user who has
> replaced a previous list owner, but does not know what lists the old owner
> maintained.  I need to get a listing of all the lists where the old owner is
> either the owner or quiet owner.

I use the following quick and dirty perl script.  It might find more
than you want, but shouldn't find too much more.

You'll have to adjust the path to your system, of course.

--
Jim Toth
[log in to unmask]



#!/usr/bin/perl -w ($#ARGV < 0 ) and die "Usage: $0 <email-address-of-owner-to-find-in-lists>\n"; chdir "/usr/local/lib/listserv/home"; opendir(DIR,".") or die "Can't open listserv directory: $!"; @files=grep (/.*\.list$/,readdir(DIR)); closedir(DIR); foreach $filename ( @files ) {   open (CUR,$filename) or     die "You probably need to be running as root or listserv:$!";   while ( <CUR> ) {     (/Owner=[^*]*$ARGV[0]/o)       and print "Found in list $filename\n";   }   close CUR; }

ATOM RSS1 RSS2