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

Ketan Maheshwari ketan at mcs.anl.gov
Mon Jun 30 15:17:37 CDT 2014


I think I found the cause. The glob is silently failing because adir/*.txt
is not found. Changing adir to absolute path worked as intended (ie. result
dir created). I think, a warning message at runtime would help if glob
results in a null result.


On Mon, Jun 30, 2014 at 2:19 PM, Tim Armstrong <tim.g.armstrong at gmail.com>
wrote:

>  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/5a1242f3/attachment.html>


More information about the ExM-user mailing list