Mark Phillips wrote:
>
>I have seen the documentation on what the command line
>commands are, but I am not sure how to issue those
>commands from a python script.


See <http://docs.python.org/lib/os-process.html>

Briefly, once you have the list name, owner email and list password in
appropriate variables, and the members in a file, you can do something
like

import os
stat = os.spawnl(os.P_WAIT, 'path/to/bin/newlist', 'newlist', '-q',
                 list_name, owner_email, list_password)
if stat:
    print 'newlist command failed - %d' % stat
    ...
stat = os.spawnl(os.P_WAIT, 'path/to/bin/add_members', 'add_members',
                 '-r members file', '-w y', ...)
...

-- 
Mark Sapiro <[EMAIL PROTECTED]>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

------------------------------------------------------
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&amp;file=faq01.027.htp

Reply via email to