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

Ketan Maheshwari ketan at mcs.anl.gov
Mon Jun 30 13:42:29 CDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20140630/deb08ab0/attachment.html>


More information about the ExM-user mailing list