<br><br><div class="gmail_quote">2009/1/19 Steven D'Aprano <span dir="ltr"><<a href="mailto:steve@remove-this-cybersource.com.au">steve@remove-this-cybersource.com.au</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Mon, 19 Jan 2009 15:47:00 +0530, srinivasan srinivas wrote:<br>
<br>
> Hi,<br>
>  I have written a script which will spawn more than 200 no of<br>
>  subprocesses. I have used subprocess.Popen to do that.<br>
><br>
>  OSError: [Error 24] Too many open files.<br>
><br>
> Could someone help me in fixing this error?<br>
<br>
</div>Open fewer files.<br>
<br>
As I understand it, each subprocess counts as at least one open file. You<br>
may be able to increase the number of open files, but that will be<br>
dependent on the operating system you are using.<br>
</blockquote><div> <br>Yeah. By his question i supposed that opening less files was not an 'ok' solution. But of course you can do that, and it is prefered  if it won't interfere negatively in your program.<br>
</div></div><br clear="all"><br>-- <br>"I May Be the Walrus."<br>