[ExM Users] turbine-aprun-run doesn't create directory

Justin M Wozniak wozniak at mcs.anl.gov
Mon Jun 30 13:52:15 CDT 2014


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.

On 06/30/2014 01:42 PM, Ketan Maheshwari wrote:
> Hi,
>
> With the following line:
>
> file output<sprintf("results/cmdout%i%i.txt", i,j)> = 
> runcommand(command+" "+filename(afile));
>
> 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?
>
> The full script is:
>
> import files;
> import io;
> import string;
> import python;
>
> app (file out) runcommand (string instr){
>    "/bin/sh" "-c" instr @stdout=out;
> }
>
> main{
>     file files[] = glob("adir/*.txt");
>     string commands[]=["head","tail","stat"];
>
>     foreach afile, i in files{
>         foreach command, j in commands{
>             file output<sprintf("results/cmdout%i%i.txt", i,j)> = 
> runcommand(command+" "+filename(afile));
>         }
>     }
> }
>
>
>
> Thanks,
> Ketan
>
>
> _______________________________________________
> ExM-user mailing list
> ExM-user at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/exm-user


-- 
Justin M Wozniak

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20140630/905a52a8/attachment.html>


More information about the ExM-user mailing list