<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><br>
      You will need to do this kind of thing in the task.<br>
      <br>
      On 07/30/2014 10:34 AM, Ketan Maheshwari wrote:<br>
    </div>
    <blockquote
cite="mid:CAMUuviqnunyGjWkiYSSenX6u3ZRqryk+OZC6Vu5uxTR1Ch-Z7w@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <div dir="ltr">Thanks, create-dir has worked. I think I need a bit
        more than this: Is it possible to cd into this newly created dir
        and run the app. This is needed because the Rosetta invocation
        does not have a way to distinguish some of the outputs and will
        result in overwrites. The code is as follows:
        <div>
          <br>
        </div>
        <div>
          <div>foreach pdb in PDB{</div>
          <div>    foreach i in [0:9]{</div>
          <div>    create_dir("dir"+fromint(i)) =>
            leaf_main(["-database", "...", "..."]); //need to perform
            this operation inside diri</div>
          <div>  }</div>
          <div> }</div>
        </div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Ketan</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Wed, Jul 30, 2014 at 10:04 AM, Tim
          Armstrong <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:tim.g.armstrong@gmail.com" target="_blank">tim.g.armstrong@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div>
              <div dir="ltr">
                <div>You'll also need to convert the loop index to a
                  string with fromint(i) or sprintf("%i", i) or similar.<br>
                  <br>
                </div>
                <div>It's probably better and less error-prone in
                  general to ensure that any functions that create their
                  output files also create the directory.  App functions
                  should already do this (if they don't, it's a bug).<br>
                </div>
                <div><br>
                </div>
                 - Tim<br>
                <div>
                  <div class="gmail_extra"><br>
                    <br>
                    <div class="gmail_quote">
                      <div class="">On Wed, Jul 30, 2014 at 9:52 AM,
                        Justin M Wozniak <span dir="ltr">
                          <<a moz-do-not-send="true"
                            href="mailto:wozniak@mcs.anl.gov"
                            target="_blank">wozniak@mcs.anl.gov</a>></span>
                        wrote:<br>
                      </div>
                      <blockquote class="gmail_quote" style="margin:0 0
                        0 .8ex;border-left:1px #ccc
                        solid;padding-left:1ex">
                        <div bgcolor="#FFFFFF" text="#000000">
                          <div>
                            <div class=""><br>
                              Yes but do it like this: <br>
                            </div>
                            <div><br>
                              <div class="">
                                <div>foreach i in [0:99]{</div>
                              </div>
                            </div>
                            <div>    create_dir("dir"+i) =><br>
                            </div>
                            <div class="">
                              <div>
                                <div>      do_some_op(inargs,
                                  "dir"+i+"/"+outfile);</div>
                                <div>}</div>
                                <div><br>
                                </div>
                                <br>
                                <br>
                              </div>
                            </div>
                            <div class="">
                              <div>
                                <div>On 07/30/2014 09:50 AM, Ketan
                                  Maheshwari wrote:<br>
                                </div>
                              </div>
                            </div>
                          </div>
                          <blockquote type="cite">
                            <div>
                              <div class="h5">
                                <div>
                                  <div>
                                    <div dir="ltr">In T, is it possible
                                      to create directory on the fly
                                      within a foreach loop like so:
                                      <div><br>
                                      </div>
                                      <div>foreach i in [0:99]{</div>
                                      <div>    create_dir("dir"+i);</div>
                                      <div>    do_some_op(inargs,
                                        "dir"+i+"/"+outfile);</div>
                                      <div>}</div>
                                      <div><br>
                                      </div>
                                      <div>Thanks,</div>
                                      <div>Ketan</div>
                                    </div>
                                    <br>
                                    <fieldset></fieldset>
                                    <br>
                                  </div>
                                </div>
                              </div>
                            </div>
                            <div class="">
                              <pre>_______________________________________________
ExM-user mailing list
<a moz-do-not-send="true" href="mailto:ExM-user@lists.mcs.anl.gov" target="_blank">ExM-user@lists.mcs.anl.gov</a>
<a moz-do-not-send="true" href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/exm-user</a><span><font color="#888888">
</font></span></pre>
                              <span></span></div>
                          </blockquote>
                          <span><font color="#888888"><br>
                              <span class="HOEnZb"><font color="#888888">
                                  <br>
                                  <pre cols="72">-- 
Justin M Wozniak</pre>
                                </font></span></font></span></div>
                        <div class="">
                          <br>
_______________________________________________<br>
                          ExM-user mailing list<br>
                          <a moz-do-not-send="true"
                            href="mailto:ExM-user@lists.mcs.anl.gov"
                            target="_blank">ExM-user@lists.mcs.anl.gov</a><br>
                          <a moz-do-not-send="true"
                            href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user"
                            target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/exm-user</a><br>
                          <br>
                        </div>
                      </blockquote>
                    </div>
                    <br>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Justin M Wozniak</pre>
  </body>
</html>