<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><SPAN>On 08/03/12, <B class=name>leila karami </B>&lt;karami.leila1@gmail.com&gt; wrote:</SPAN>
<BLOCKQUOTE style="BORDER-LEFT: #00f 1px solid; PADDING-LEFT: 13px; MARGIN-LEFT: 0px" class=iwcQuote cite=mid:CAA=8PuuA0K+-BigiUyPjXE0P=BKG=95ZaySgE=-vGAp-XAA7+g@mail.gmail.com type="cite">Dear Justin<br /><br />Thanks for your reply.<br /><br />As you said " You need to enclose your selection string within ' ' so it is interpreted as a single string." , I enclosed my selection string:<br /><br /><br />g_select -f com_ta_full_3.xtc -s com_ta_full.tpr -n index.ndx -oi -select "Close to Protein" 'resname' 'SOL' and within 0.25 of group 'Protein'</BLOCKQUOTE>
<DIV>&nbsp;</DIV><DIV>You've enclosed each word of your selection string in its own set of single quotes. You need to enclose the whole of your selection string - including&nbsp;the name of the selection&nbsp;- &nbsp;in one set of single quotes.&nbsp;This forces your shell to pass the whole string as the argument to -select. Normally the shell breaks up the words before the tool you are using gets a look at them.</DIV><DIV><br />Mark&nbsp;</DIV><DIV>&nbsp;</DIV><BLOCKQUOTE style="BORDER-LEFT: #00f 1px solid; PADDING-LEFT: 13px; MARGIN-LEFT: 0px" class=iwcQuote cite=mid:CAA=8PuuA0K+-BigiUyPjXE0P=BKG=95ZaySgE=-vGAp-XAA7+g@mail.gmail.com type="cite">
<DIV class="mimepart text html"><br /><br />But, unfortunately, Program g_select, VERSION 4.5.1<br />Source code file: statutil.c, line: 819<br /><br />Invalid command line argument:<br />SOL<br /><br /><br />If I'm wrong in using selection string above, please correct it.<br /><br />Best regards.<br /></DIV></BLOCKQUOTE>
<DIV>&nbsp;</DIV>