diff options
-rw-r--r-- | util.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -41,7 +41,9 @@ def create_list(listname, listadmin, passwd=None): # create list p = subprocess.Popen(['sudo', '-n', os.path.join(config.mailman_path, 'bin', 'neueliste.bash'), listname, listadmin, passwd], - stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdin=subprocess.PIPE) + print >>p.stdin, "" + (progress, junk) = p.communicate() return (p.returncode == 0, progress) except Exception as e: |