Thanks to Azoia and nayeem<br><br>The solution from Azoia is perfectly working :)<br><br>Thx. <br><br><div class="gmail_quote">2012/2/10 Nuno Azoia <span dir="ltr">&lt;<a href="mailto:nazoia@gmail.com">nazoia@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">There is a more direct way. In the script just use<br>
  g_msd -f *.xtc -s *.tpr -o *.xvg -rmcomm &lt;&lt;EOF<br>
  Number<br>
  Number<br>
  EOF<br>
<br>
where Number denotes the group number, or the group name, matching the<br>
definition on the index file. It will work in both ways. It can be<br>
used with one, two , or the number of &quot;answers&quot; you need to supply.<br>
<br>
Nuno Azoia<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Feb 10, 2012 at 11:54 AM, shahid nayeem &lt;<a href="mailto:msnayeem@gmail.com">msnayeem@gmail.com</a>&gt; wrote:<br>
&gt; Create a file named input.g_rms. write the group number in this file. In<br>
&gt; your shell script after command line write &lt;input.g_rms. when the command is<br>
&gt; executed in shell the file input.g_rms having group number will be read.<br>
&gt; Hope it works.<br>
&gt; Shahid nayeem<br>
&gt;<br>
&gt; On Fri, Feb 10, 2012 at 4:19 PM, Kiwoong Kim &lt;<a href="mailto:ilmarejoe@gmail.com">ilmarejoe@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m not good at shell programming now.<br>
&gt;&gt; For the simplicity, I wrote down all the gromacs commands in one shell<br>
&gt;&gt; script.<br>
&gt;&gt;<br>
&gt;&gt; It means that if I execute the .sh file, then every works including graphs<br>
&gt;&gt; used for analysis are done.<br>
&gt;&gt; However, when there are g_msd -f *.xtc -s *.tpr -o *.xvg -rmcomm, I have<br>
&gt;&gt; to select the groups manually.<br>
&gt;&gt; This is quite inconvenient...<br>
&gt;&gt;<br>
&gt;&gt; Is there any way to handle this??<br>
&gt;&gt;<br>
&gt;&gt; Thanks in advance<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; gmx-users mailing list    <a href="mailto:gmx-users@gromacs.org">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<br>
&gt;&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;&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">gmx-users-request@gromacs.org</a>.<br>
&gt;&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>
&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<br>
&gt; www interface 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>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Nuno Gonçalo Azoia Lopes<br>
<br>
Rua Nascente, nº 25<br>
4705-473 Escudeiros<br>
<br>
Tel: 253 683 198<br>
Móvel: 965 382 487<br>
</font></span><div class="HOEnZb"><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>