Great Circle Associates Majordomo-Users
(January 1995)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Subscribing 100 People
From: plate @ dicomed . com (Doug Plate Sr.)
Date: Sat, 14 Jan 95 11:03 CST
To: carlos @ vacuum . org (Carlos Toro)
Cc: majordomo-users @ greatcircle . com


>I want to set up a list and subscribe 100 people. I could use the 
>approve <listpasswd> subscribe <listname> <user@address>
>command 100 times but that would be tedious.
>
>Does anyone have a handy-dandy script that could do this work for me, given a 
>file of addresses?
>

How about:

#!/usr/bin/perl
# or wherever your perl is
# I'll call it 'seed-list'
#  usage: seed-list passwd listname address-file
#
$list_passwd = shift;
$list_name = shift;
$addr_file = shift;

open(MAIL, "|mail majordomo")
open(ADDRESSES, "$addr_file") || die("Can't open the address list file");

while(<ADDRESSES>){
    print MAIL "approve $list_passwd subscribe $list_name $_\n";
}
close(ADDRESSES);
close(MAIL);
__END__


Didn't test it but, looks right.  Too bad Majordomo will send you back one 
message each, notifying you of the subscriptions.

Regards,
Doug Plate Sr.
//////////////////////////////////////////////////////////////////////////////
 Doug Plate Sr.                                           <plate@dicomed.com>
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\



Indexed By Date Previous: Re: subbing to every list at our site.
From: Paul Haas <paulh@hamjudo.com>
Next: Testing majordomo 1.92 - unknown mailer error 5
From: "M.MCCARRON" <M.McCarron@Queens-Belfast.AC.UK>
Indexed By Thread Previous: Re: Subscribing 100 People
From: Smith Woody <WSMITH@OSFMS1.HQ.NASA.GOV>
Next: Re: Subscribing 100 People
From: Simon Prendergast <prender@Roborough.gpsemi.COM>

Google
 
Search Internet Search www.greatcircle.com