Thanks Justin, and Tsjerk for the helpful comments. I think I can get away with a simple for-loop as Justin recommended.<div><br></div><div>Greg</div><div><br><br><div class="gmail_quote">On Thu, Aug 25, 2011 at 4:14 PM, Tsjerk Wassenaar <span dir="ltr">&lt;<a href="mailto:tsjerkw@gmail.com">tsjerkw@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hey :<br>
<br>
In scripts, like on the command line, processes wait for earlier<br>
processes to finish, unless these are brought to the background using<br>
the ampersand &#39;&amp;&#39; at the end of the line. If you want to execute<br>
something in the background in your script, to allow checking the<br>
progress automatically, for instance, you can make sure some later<br>
process does not start before the ones in the background finished by<br>
using the command &#39;wait&#39;:<br>
<br>
mdrun -deffnm [...] &amp;<br>
wait<br>
grompp [...]<br>
mdrun -deffnm [...] &amp;<br>
wait<br>
echo FINISHED<br>
<br>
Hope it helps,<br>
<br>
Tsjerk<br>
<div><div></div><div class="h5"><br>
On Thu, Aug 25, 2011 at 9:14 PM, Justin A. Lemkul &lt;<a href="mailto:jalemkul@vt.edu">jalemkul@vt.edu</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt; Yongchul Chung wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello gmx-users,<br>
&gt;&gt;<br>
&gt;&gt; I am trying to run a sequence of energy minimizations for a model polymer<br>
&gt;&gt; system. Currently, I do following steps manually:<br>
&gt;&gt; step 1) I run an energy minimization for a configuration. (using mdrun<br>
&gt;&gt; option)<br>
&gt;&gt; step 2) From the output of this configuration, I change something in the<br>
&gt;&gt; coordinate file then run the energy minimization. (using editconf option)<br>
&gt;&gt;<br>
&gt;&gt; I want to automate this process since the delay between runs is ~15<br>
&gt;&gt; minutes. My idea is that I can probably introduce time delay in scripts, but<br>
&gt;&gt; it would be nice if there&#39;s an option in GROMACS which allows for a sequence<br>
&gt;&gt; of mdruns. Does anyone aware of such option for GROMACS?<br>
&gt;<br>
&gt; No, this just sounds like a job for a simple for-loop.  No time delay<br>
&gt; necessary, just set a counter for the number of iterations and run the<br>
&gt; sequence of commands within the loop.<br>
&gt;<br>
&gt; -Justin<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; MILES-IGERT Trainee<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> | <a href="tel:%28540%29%20231-9080" value="+15402319080">(540) 231-9080</a><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">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<br>
&gt; <a href="http://www.gromacs.org/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/Search</a> before posting!<br>
&gt; Please don&#39;t post (un)subscribe requests to the list. Use the www interface<br>
&gt; or send it to <a href="mailto:gmx-users-request@gromacs.org">gmx-users-request@gromacs.org</a>.<br>
&gt; Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
Tsjerk A. Wassenaar, Ph.D.<br>
<br>
post-doctoral researcher<br>
Molecular Dynamics Group<br>
* Groningen Institute for Biomolecular Research and Biotechnology<br>
* Zernike Institute for Advanced Materials<br>
University of Groningen<br>
The Netherlands<br>
<div><div></div><div class="h5">--<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/Support/Mailing_Lists/Search" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/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/Support/Mailing_Lists" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
</div></div></blockquote></div><br></div>