* Aris Santillan <[EMAIL PROTECTED]> [20020809 09:09]: wrote:
PS: Please use an e-mail address we can reply to!!
> well
> this is how it goes
>
> /var/mailman/bin/list_members -o (textfile) (listname)
> /var/mailman/bin/(textfile)
>
> textfile contains the email addresses of (listname) subscribers
>
> i wnt to execute it automatically to update the contents of if.....
what??
>
> example:
#!/usr/local/bin/bash
# Where is our work directory?
DIR=/var/mailman/bin
# Let's output the list of members
NEWLIST=`/var/mailman/bin/list_members -o (textfile) (listname)`
# What do we use to update a list?
UPDATE=/usr/local/mailman/bin/add_members
# Where is the file containing new members? That is the output on NEWLIST.
SOURCE=$NEWLIST
# Okay, let's update
for i in `cat $SOURCE`; do
$UPDATE -o $SOURCE mail
done
#Untested.
# I am not responsible if you blow it all away. I've only given you enough
rope to begin hanging yourself ;-)
cheers
- wash
+----------------------------------+-----------------------------------------+
Odhiambo Washington, [EMAIL PROTECTED] . WANANCHI ONLINE LTD (Nairobi, KE) |
http://ns2.wananchi.com/~wash/ . 1ere Etage, Loita Hse, Loita St., |
GSM: (254) 722 743 223 . # 10286, 00100 NAIROBI |
+---------------------------------+------------------------------------------+
"Oh My God! They killed init! You Bastards!"
--from a /. post
++
``That Ariel Sharon. Boy, he sure is controversial.
Most Western countries would have to have a military coup
before they enjoyed a leader of that caliber.'' (Sydney Webb)
------------------------------------------------------
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/