<div dir="ltr"><div>We don't really have documented behaviour here. It does currently create the output directory for stdout/stderr. What is the actual behaviour at runtime? Do you see a crash or anything?<br><br></div>
- Tim<br><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 30, 2014 at 1:54 PM, Ketan Maheshwari <span dir="ltr"><<a href="mailto:ketan@mcs.anl.gov" target="_blank">ketan@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 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"><div class="">
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></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div class="">
<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>
<br>
On 06/30/2014 01:42 PM, Ketan Maheshwari wrote:<br>
</div></div></div>
</div><blockquote type="cite"><div><div class="h5"><div><div>
<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></div></div><div class=""><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><font color="#888888">
</font></span></pre><span><font color="#888888">
</font></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>
</blockquote></div><br></div>
<br>_______________________________________________<br>
ExM-user mailing list<br>
<a href="mailto:ExM-user@lists.mcs.anl.gov">ExM-user@lists.mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/exm-user</a><br>
<br></blockquote></div><br></div></div></div>