Set ulimit when using subprocess.Popen?
Jarek Zgoda
jzgoda at o2.usun.pl
Mon Jan 28 08:59:28 EST 2008
Rob Wolfe napisał(a):
>
> 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)
subprocess.Popen('ulimit -v 1024; ls', shell=True) works perfect.
Unfortunately, the nature of ulimit impacts deadly my application when
the limit is reached, so this knowledge is of no help in my case. ;)
--
Jarek Zgoda
Skype: jzgoda | GTalk: zgoda at jabber.aster.pl | voice: +48228430101
"We read Knuth so you don't have to." (Tim Peters)
More information about the Python-list
mailing list