
- Dennis Putnam <dap1@bellsouth.net>:
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)
I guess the script must run as user "mailman" or "root" Which error messag exactly?
-- Ralf Hildebrandt Charité - Universitätsmedizin Berlin Geschäftsbereich IT | Abteilung Netz | Netzwerk-Administration Invalidenstraße 120/121 | D-10115 Berlin
Tel. +49 30 450 570 155 ralf.hildebrandt@charite.de https://www.charite.de