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

Tim Armstrong tim.g.armstrong at gmail.com
Mon Jun 30 14:19:27 CDT 2014


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?

- Tim


On Mon, Jun 30, 2014 at 1:54 PM, Ketan Maheshwari <ketan at mcs.anl.gov> wrote:

> The behavior in different when run with turbine command on MCS
> workstation. The "results" directory gets created as a result of running
> this script.
>
>
> On Mon, Jun 30, 2014 at 1:52 PM, Wozniak, Justin M. <wozniak at mcs.anl.gov>
> wrote:
>
>>
>> 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 listExM-user at lists.mcs.anl.govhttps://lists.mcs.anl.gov/mailman/listinfo/exm-user
>>
>>
>>
>> --
>> Justin M Wozniak
>>
>>
>
> _______________________________________________
> ExM-user mailing list
> ExM-user at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/exm-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20140630/f340d3be/attachment-0001.html>


More information about the ExM-user mailing list