That worked for me for "bin/pvbatch <scriptname>". I did get 2 debug leak warnings but no problems exiting. If I comment out exit(), I don't get the leaks.<br><br>When I ran in parallel I get similar behavior with respect to using exit(). I do have to use the -sym flag (mpirun -np X bin/pvbatch -sym <scriptname>) though with pvbatch. Maybe that's what you're missing.<br>
<br>Andy<br><br><div class="gmail_quote">On Tue, Feb 21, 2012 at 1:57 PM, Scott, W Alan <span dir="ltr"><<a href="mailto:wascott@sandia.gov">wascott@sandia.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<font face="Calibri"><span style="font-size:11pt">
<div>When I run pvbatch, with the following script, pvbatch never exits. Is there a way to get pvbatch to exit? </div>
<div> </div>
<div> </div>
<div># write a file</div>
<div>f = open('/… /working.txt', 'w')</div>
<div>f.write('script worked\n')</div>
<div>f.close()</div>
<div> </div>
<div># exit</div>
<div>exit()</div>
<div> </div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>Alan</div>
<div> </div>
<div><font><span style="font-size:10pt">--------------------------------------------------------</span></font></div>
<div><font face="Arial"><span style="font-size:10pt">W. Alan Scott</span></font></div>
<div><font face="Arial"><span style="font-size:10pt">ParaView Support Manager</span></font></div>
<div><font face="Arial"><span style="font-size:10pt"> </span></font></div>
<div><font face="Arial"><span style="font-size:10pt">GAITS</span></font></div>
<div><font face="Arial"><span style="font-size:10pt">Sandia National Laboratories, MS 0822</span></font></div>
<div><font face="Arial"><span style="font-size:10pt">Org 9326 - Building 880 A1-C</span></font></div>
<div><font face="Arial"><span style="font-size:10pt"><a href="tel:%28505%29%20284-0932" value="+15052840932" target="_blank">(505) 284-0932</a> FAX <a href="tel:%28505%29%20284-5619" value="+15052845619" target="_blank">(505) 284-5619</a></span></font></div>
<div><font face="Arial"><span style="font-size:10pt">---------------------------------------------------------</span></font></div>
<div> </div>
<div> </div>
<div> </div>
</span></font>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>