So if I do this within a perl script, I will need to capture the pid and kill that process if it runs over 5 minutes? I&#39;ll try the -maxh first. Otherwise I&#39;ll spend some time trying to debug it.<br><br><div class="gmail_quote">
On Mon, Sep 14, 2009 at 11:09 AM, Berk Hess <span dir="ltr">&lt;<a href="mailto:gmx3@hotmail.com">gmx3@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div>
If mdrun hangs -maxh won&#39;t help.<br>You can kill mdrun using the kill command.<br>But since mdrun catches signals, you might need kill -9 (the &#39;KILL&#39; signal).<br><br>Berk<br><br>&gt; Date: Mon, 14 Sep 2009 10:56:43 -0400<br>
&gt; From: <a href="mailto:jalemkul@vt.edu" target="_blank">jalemkul@vt.edu</a><br>&gt; To: <a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a><br>&gt; Subject: Re: [gmx-users] Limit mdrun runtime<div>
<div></div><div class="h5"><br>&gt; <br>&gt; <br>&gt; <br>&gt; Jack Shultz wrote:<br>&gt; &gt; Hello,<br>&gt; &gt; <br>&gt; &gt; I have developed a workflow for prepping structures. One problem I have <br>&gt; &gt; is sometimes it gets hung up on mdrun. Are there any mdrun parameters we <br>
&gt; &gt; can use to kill this process if it runs too long?  The parameters we are <br>&gt; &gt; using should not run over 5 minutes. I have not figured out how to do <br>&gt; &gt; this with my script, but I guess there may be a way using SIGALRM.<br>
&gt; &gt; <br>&gt; <br>&gt; mdrun -maxh<br>&gt; <br>&gt; -Justin<br>&gt; <br>&gt; &gt; -- <br>&gt; &gt; Jack<br>&gt; &gt; <br>&gt; &gt; <a href="http://drugdiscoveryathome.com" target="_blank">http://drugdiscoveryathome.com</a><br>
&gt; &gt; <a href="http://hydrogenathome.org" target="_blank">http://hydrogenathome.org</a><br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; <br>
&gt; &gt; _______________________________________________<br>&gt; &gt; gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a><br>&gt; &gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
&gt; &gt; Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>&gt; &gt; Please don&#39;t post (un)subscribe requests to the list. Use the <br>
&gt; &gt; www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank">gmx-users-request@gromacs.org</a>.<br>&gt; &gt; Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br>
&gt; <br>&gt; -- <br>&gt; ========================================<br>&gt; <br>&gt; Justin A. Lemkul<br>&gt; Ph.D. Candidate<br>&gt; ICTAS Doctoral Scholar<br>&gt; Department of Biochemistry<br>&gt; Virginia Tech<br>&gt; Blacksburg, VA<br>
&gt; jalemkul[at]<a href="http://vt.edu" target="_blank">vt.edu</a> | (540) 231-9080<br>&gt; <a href="http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin" target="_blank">http://www.bevanlab.biochem.vt.edu/Pages/Personal/justin</a><br>
&gt; <br>&gt; ========================================<br>&gt; _______________________________________________<br>&gt; gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org" target="_blank">gmx-users@gromacs.org</a><br>
&gt; <a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>&gt; Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
&gt; Please don&#39;t post (un)subscribe requests to the list. Use the <br>&gt; www interface or send it to <a href="mailto:gmx-users-request@gromacs.org" target="_blank">gmx-users-request@gromacs.org</a>.<br>&gt; Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br>
<br></div></div><div class="hm"><hr>Express yourself instantly with MSN Messenger! <a href="http://clk.atdmt.com/AVE/go/onm00200471ave/direct/01/" target="_blank">MSN Messenger</a></div></div>
<br>_______________________________________________<br>
gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">gmx-users@gromacs.org</a><br>
<a href="http://lists.gromacs.org/mailman/listinfo/gmx-users" target="_blank">http://lists.gromacs.org/mailman/listinfo/gmx-users</a><br>
Please search the archive at <a href="http://www.gromacs.org/search" target="_blank">http://www.gromacs.org/search</a> before posting!<br>
Please don&#39;t post (un)subscribe requests to the list. Use the<br>
www interface or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
Can&#39;t post? Read <a href="http://www.gromacs.org/mailing_lists/users.php" target="_blank">http://www.gromacs.org/mailing_lists/users.php</a><br></blockquote></div><br><br clear="all"><br>-- <br>Jack<br><br><a href="http://drugdiscoveryathome.com">http://drugdiscoveryathome.com</a><br>
<a href="http://hydrogenathome.org">http://hydrogenathome.org</a><br>