Set ulimit when using subprocess.Popen?

Rob Wolfe rw at smsnet.pl
Mon Jan 28 14:36:29 CET 2008



Jarek Zgoda napisał(a):
> Hi, all,
>
> anybody has an idea on how to set ulimit (-v in my case, linux) for
> process started using subprocess.Popen?

What about:

from subprocess import call
call('ulimit -v 1000 && ulimit -v && ls', shell=True)

HTH,
Rob



More information about the Python-list mailing list