<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi. I hope this reply comes through. I often get bounced when replying here.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In fact the reason is because I am not running ls.  This was just an example.<o:p></o:p></p>
<p class="MsoNormal">I am running mmgetlocation  to get the chunks allocation on each NSD of a file.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Secondly my problem is that a space is needed:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">mmfind  /mountpoint -type f -exec mmgetlocation -D myproblemnsd -f {} \;<o:p></o:p></p>
<p class="MsoNormal">Note the space before the \<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">TO my shame this is the same as in the normal find command<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>From:</b> gpfsug-discuss-bounces@spectrumscale.org [mailto:gpfsug-discuss-bounces@spectrumscale.org]
<b>On Behalf Of </b>Marc A Kaplan<br>
<b>Sent:</b> Thursday, February 22, 2018 3:21 PM<br>
<b>To:</b> gpfsug main discussion list <gpfsug-discuss@spectrumscale.org><br>
<b>Cc:</b> gpfsug-discuss-bounces@spectrumscale.org<br>
<b>Subject:</b> Re: [gpfsug-discuss] mmfind -ls<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Leaving aside the -exec option, and whether you choose classic find or mmfind,</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">why not just use the -ls option - same output, less overhead...</span><br>
<br>
<span style="font-size:10.0pt;font-family:"Arial",sans-serif">mmfind pathname -type f -ls
<br>
</span><br>
<br>
<br>
<br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">From:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">John Hearns <<a href="mailto:john.hearns@asml.com">john.hearns@asml.com</a>></span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">To:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">gpfsug main discussion list <<a href="mailto:gpfsug-discuss@spectrumscale.org">gpfsug-discuss@spectrumscale.org</a>></span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Cc:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">"<a href="mailto:gpfsug-discuss-bounces@spectrumscale.org">gpfsug-discuss-bounces@spectrumscale.org</a>"
 <<a href="mailto:gpfsug-discuss-bounces@spectrumscale.org">gpfsug-discuss-bounces@spectrumscale.org</a>></span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Date:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">02/22/2018 04:03 AM</span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Subject:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">Re: [gpfsug-discuss] mmfind will not exec</span><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F">Sent by:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif"><a href="mailto:gpfsug-discuss-bounces@spectrumscale.org">gpfsug-discuss-bounces@spectrumscale.org</a></span><o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="3" width="100%" noshade="" style="color:#A0A0A0" align="center">
</div>
<p class="MsoNormal"><br>
<br>
<br>
<span style="font-size:10.0pt">Stupid me. The space between the {}  and \; is significant.</span><br>
<span style="font-size:10.0pt">/usr/local/bin/mmfind /hpc/bscratch -type f -exec /bin/ls {} \;</span><br>
<span style="font-size:10.0pt"> </span><br>
<span style="font-size:10.0pt">Still would be nice to have the documentation clarified please.</span><br>
<span style="font-size:10.0pt">                                                                                                         
</span><br>
<span style="font-size:10.0pt"> </span><br>
<span style="font-size:10.0pt"> </span><br>
<span style="font-size:10.0pt"> </span><br>
<span style="font-size:10.0pt"> </span><br>
<b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt">
<a href="mailto:gpfsug-discuss-bounces@spectrumscale.org">gpfsug-discuss-bounces@spectrumscale.org</a> [</span><a href="mailto:gpfsug-discuss-bounces@spectrumscale.org"><span style="font-size:10.0pt">mailto:gpfsug-discuss-bounces@spectrumscale.org</span></a><span style="font-size:10.0pt">]
<b>On Behalf Of </b>IBM Spectrum Scale<b><br>
Sent:</b> Thursday, February 22, 2018 2:26 AM<b><br>
To:</b> gpfsug main discussion list <<a href="mailto:gpfsug-discuss@spectrumscale.org">gpfsug-discuss@spectrumscale.org</a>><b><br>
Cc:</b> <a href="mailto:gpfsug-discuss-bounces@spectrumscale.org">gpfsug-discuss-bounces@spectrumscale.org</a><b><br>
Subject:</b> Re: [gpfsug-discuss] mmfind will not exec</span><br>
<span style="font-size:10.0pt"> </span><br>
<span style="font-size:12.0pt;font-family:"Arial",sans-serif">Looking at the mmfind.README it indicates that it only supports the format you used with the semi-colon.  Did you capture any output of the problem?</span><span style="font-size:10.0pt"><br>
</span><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><br>
Regards, The Spectrum Scale (GPFS) team<br>
<br>
------------------------------------------------------------------------------------------------------------------<br>
If you feel that your question can benefit other users of  Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at
</span><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__emea01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fwww.ibm.com-252Fdeveloperworks-252Fcommunity-252Fforums-252Fhtml-252Fforum-253Fid-253D11111111-2D0000-2D0000-2D0000-2D000000000479-26data-3D01-257C01-257Cjohn.hearns-2540asml.com-257Ce691619b05ef45106cd008d579934e0f-257Caf73baa8f5944eb2a39d93e96cad61fc-257C1-26sdata-3Dbd0PN6hi0nMTKeXMcsvUVNOEtRF4PGaJ-252BIm97cQiNjc-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DcvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8%26m%3D77Whh54a5VWNFaaczlMhEzn7B802MGX9m-C2xj4sP1k%26s%3Dz7FmlsZ2aoUL9VjH82dy2HVT0bY9FERqHXQW5a3NHgQ%26e%3D&data=01%7C01%7Cjohn.hearns%40asml.com%7C376ff95e5cc845d8c85e08d579ff753d%7Caf73baa8f5944eb2a39d93e96cad61fc%7C1&sdata=tkrVw99IxTZUDHj6WzXIEI0HxrFmci8LNdSF3t0OPpE%3D&reserved=0"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000479</span></a><span style="font-size:10.0pt;font-family:"Arial",sans-serif">.
<br>
<br>
If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact  1-800-237-5511 in the United States or your local IBM Service Center in other countries.
<br>
<br>
The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team.</span><span style="font-size:10.0pt"><br>
<br>
<br>
</span><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:#5F5F5F"><br>
From:        </span><span style="font-size:7.5pt;font-family:"Arial",sans-serif">John Hearns <</span><a href="mailto:john.hearns@asml.com"><span style="font-size:7.5pt;font-family:"Arial",sans-serif">john.hearns@asml.com</span></a><span style="font-size:7.5pt;font-family:"Arial",sans-serif">><span style="color:#5F5F5F"><br>
To:        </span>gpfsug main discussion list <</span><a href="mailto:gpfsug-discuss@spectrumscale.org"><span style="font-size:7.5pt;font-family:"Arial",sans-serif">gpfsug-discuss@spectrumscale.org</span></a><span style="font-size:7.5pt;font-family:"Arial",sans-serif">><span style="color:#5F5F5F"><br>
Date:        </span>02/21/2018 06:45 PM<span style="color:#5F5F5F"><br>
Subject:        </span>[gpfsug-discuss] mmfind will not exec<span style="color:#5F5F5F"><br>
Sent by:        </span></span><a href="mailto:gpfsug-discuss-bounces@spectrumscale.org"><span style="font-size:7.5pt;font-family:"Arial",sans-serif">gpfsug-discuss-bounces@spectrumscale.org</span></a><o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="3" width="100%" noshade="" style="color:#A0A0A0" align="center">
</div>
<p class="MsoNormal"><br>
<span style="font-size:10.0pt"><br>
<br>
<br>
I would dearly like to use mmfind in a project I am working on  (version 4.2.3.4 at the moment)<br>
<br>
mmfind /hpc/bscratch  -type f                  work fine<br>
<br>
mmfind /hpc/bscratch  -type f -exec /bin/ls {}\ ;      crashes and burns<br>
<br>
I know there are supposed to be problems with exec and mmfind, and this is sample software shipped without warranty etc.<br>
But why let me waste hours on this when it won’t work?<br>
There is even an example in the README for mmfind <br>
<br>
./mmfind /encFS -type f -exec /bin/readMyFile {} \;<br>
But in the help for mmfind:<br>
-exec COMMANDs are terminated by a standalone ';' or by the string '{} +’<br>
<br>
So which is it? The normal find version {} \;    or         {} +</span><o:p></o:p></p>
<p><span style="font-size:12.0pt">-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is
 prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this
 information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. Neither the sender nor the company/group of
 companies he or she represents shall be liable for the proper and complete transmission of the information contained in this communication, or for any delay in its receipt.
</span><span style="font-size:10.0pt;font-family:"Courier New"">_______________________________________________<br>
gpfsug-discuss mailing list<br>
gpfsug-discuss at spectrumscale.org</span><u><span style="font-size:12.0pt;color:blue"><br>
</span></u><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__emea01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Furldefense.proofpoint.com-252Fv2-252Furl-253Fu-253Dhttp-2D3A-5F-5Fgpfsug.org-5Fmailman-5Flistinfo-5Fgpfsug-2D2Ddiscuss-2526d-253DDwICAg-2526c-253Djf-5FiaSHvJObTbx-2DsiA1ZOg-2526r-253DIbxtjdkPAM2Sbon4Lbbi4w-2526m-253DOC7XNZeulP0vmS8Fq-2DRJuun5wOqFPootm0QHxBXUfKg-2526s-253DLUvpk53AaNcHSGQgDgH8FAiOOsH1H0OPOV9MFGMIi9E-2526e-253D-26data-3D01-257C01-257Cjohn.hearns-2540asml.com-257Ce691619b05ef45106cd008d579934e0f-257Caf73baa8f5944eb2a39d93e96cad61fc-257C1-26sdata-3D0IUImpBcheKWqRnVmiaZbyQeBYo535ytmbSzhukmkFI-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DcvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8%26m%3D77Whh54a5VWNFaaczlMhEzn7B802MGX9m-C2xj4sP1k%26s%3D3crimh5GnQABIoYCAlxaWhAgiSf3CTAxykdtx1t5FHA%26e%3D&data=01%7C01%7Cjohn.hearns%40asml.com%7C376ff95e5cc845d8c85e08d579ff753d%7Caf73baa8f5944eb2a39d93e96cad61fc%7C1&sdata=V0QsJD8nH6F%2FHA5FplT0xXG%2BoU0DHHwWuvk68G9%2BoTg%3D&reserved=0"><span style="font-size:10.0pt;font-family:"Courier New"">https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=IbxtjdkPAM2Sbon4Lbbi4w&m=OC7XNZeulP0vmS8Fq-RJuun5wOqFPootm0QHxBXUfKg&s=LUvpk53AaNcHSGQgDgH8FAiOOsH1H0OPOV9MFGMIi9E&e=</span></a><o:p></o:p></p>
<p><span style="font-size:12.0pt"> </span><o:p></o:p></p>
<p><span style="font-size:12.0pt">-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is
 prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this
 information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. Neither the sender nor the company/group of
 companies he or she represents shall be liable for the proper and complete transmission of the information contained in this communication, or for any delay in its receipt.
</span><tt><span style="font-size:10.0pt">_______________________________________________</span></tt><span style="font-size:10.0pt;font-family:"Courier New""><br>
<tt>gpfsug-discuss mailing list</tt><br>
<tt>gpfsug-discuss at spectrumscale.org</tt><br>
</span><a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttp-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss%26d%3DDwICAg%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DcvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8%26m%3D77Whh54a5VWNFaaczlMhEzn7B802MGX9m-C2xj4sP1k%26s%3DL4bZlOcrZLwkyth7maRTEmms7Ftarchh_DkBvdTEF7w%26e%3D&data=01%7C01%7Cjohn.hearns%40asml.com%7C376ff95e5cc845d8c85e08d579ff753d%7Caf73baa8f5944eb2a39d93e96cad61fc%7C1&sdata=QbSqdCEElYWfYImk5gth0a8z66sr%2F4DnSnIVaYQzCcE%3D&reserved=0"><tt><span style="font-size:10.0pt">https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listinfo_gpfsug-2Ddiscuss&d=DwICAg&c=jf_iaSHvJObTbx-siA1ZOg&r=cvpnBBH0j41aQy0RPiG2xRL_M8mTc1izuQD3_PmtjZ8&m=77Whh54a5VWNFaaczlMhEzn7B802MGX9m-C2xj4sP1k&s=L4bZlOcrZLwkyth7maRTEmms7Ftarchh_DkBvdTEF7w&e=</span></tt></a><o:p></o:p></p>
<p><o:p> </o:p></p>
</div>
-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated
 otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your
 own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. Neither the sender nor the company/group of companies he or she represents shall be
 liable for the proper and complete transmission of the information contained in this communication, or for any delay in its receipt.
</body>
</html>