<div dir="ltr">The behavior in different when run with turbine command on MCS workstation. The "results" directory gets created as a result of running this script.</div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Mon, Jun 30, 2014 at 1:52 PM, Wozniak, Justin M. <span dir="ltr"><<a href="mailto:wozniak@mcs.anl.gov" target="_blank">wozniak@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div><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><div><div class="h5">
<br>
On 06/30/2014 01:42 PM, Ketan Maheshwari wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="h5">
<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></fieldset> <br>
</div></div><pre>_______________________________________________
ExM-user mailing list
<a href="mailto:ExM-user@lists.mcs.anl.gov" target="_blank">ExM-user@lists.mcs.anl.gov</a>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/exm-user</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
<pre cols="72">--
Justin M Wozniak</pre>
</font></span></div>
</blockquote></div><br></div>