On Wed, Apr 16, 2014 at 8:47 PM, Влатко Станковиќ <l...@linuxmail.org> wrote: > capture_server1 = '''xvfb-run --auto-servernum ... ''' > server1_download = subprocess.Popen(shlex.split(capture_server1)
Separate to your actual problem: Is there a reason for splitting like that, rather than simply using a list of separate arguments? That would be a lot safer and easier; no going through the hassles of quoting and splitting. Your exact problem is likely to be due to unclosed files. I don't know enough about .communicate() to know whether it closes everything immediately or not, but it looks like you're progressively opening more and more and more pipes. ChrisA -- https://mail.python.org/mailman/listinfo/python-list