<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><br>
      Swift/T doesn't create or stage output files- it's up to the app
      to create any desired output directories.  It does not interpret
      the output file name. <br>
      <br>
      On 06/30/2014 01:42 PM, Ketan Maheshwari wrote:<br>
    </div>
    <blockquote
cite="mid:CAMUuviqUgcH+dCV-LKcoFk9n5O-D6wboYTiHupEo+2Qy+V5yLA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>With the following line:</div>
        <div><br>
        </div>
        <div>file output<sprintf("results/cmdout%i%i.txt", i,j)> =
          runcommand(command+" "+filename(afile));<br>
        </div>
        <div>
          <br>
        </div>
        <div>I expect turbine to create a directory "results", in the
          jobdir  in the case of turbine-aprun-run.zsh, but it seems
          this is not created. Is this expected behavior?</div>
        <div><br>
        </div>
        <div>The full script is:</div>
        <div><br>
        </div>
        <div>
          <div>import files;</div>
          <div>import io;</div>
          <div>import string;</div>
          <div>import python;</div>
          <div><br>
          </div>
          <div>app (file out) runcommand (string instr){</div>
          <div>   "/bin/sh" "-c" instr @stdout=out;</div>
          <div>}</div>
          <div><br>
          </div>
          <div>main{</div>
          <div>    file files[] = glob("adir/*.txt");</div>
          <div>    string commands[]=["head","tail","stat"];</div>
          <div><br>
          </div>
          <div>    foreach afile, i in files{</div>
          <div>        foreach command, j in commands{</div>
          <div>            file
            output<sprintf("results/cmdout%i%i.txt", i,j)> =
            runcommand(command+" "+filename(afile));</div>
          <div>        }</div>
          <div>    }</div>
          <div>}</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>Ketan</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ExM-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ExM-user@lists.mcs.anl.gov">ExM-user@lists.mcs.anl.gov</a>
<a class="moz-txt-link-freetext" href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user">https://lists.mcs.anl.gov/mailman/listinfo/exm-user</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Justin M Wozniak</pre>
  </body>
</html>