<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>