I am developing a script that gets a list of members from a mailing list (mailman 2.1.15). I'm using popen (in python 2.7.5) to issue the command. However, even though I am running it as admin for that list, I'm getting a permissions error. How/what do I need to set in order to run that command?

def getUsers():
        "This function returns a list of users from mailman"
p=subprocess.Popen(["/usr/lib/mailman/bin/list_members","listname"],stdout=subprocess.PIPE)
        lines=p.stdout.readlines()
        p.wait
        return(lines)

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

------------------------------------------------------
Mailman-Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/[email protected]/
    https://mail.python.org/archives/list/[email protected]/
Member address: [email protected]

Reply via email to