Jan,

I agree that it would be better not to assume which shell.

Something like what has been done with the executable would suffice:

        (**Hypothetical syntax follows**)

        <prologue>
                <executable>/bin/bash</executable>
                <argument>-c</argument>
                <argument>my bash shell script</argument>
        </prologue>

With the understanding that this is to be executed on a single node 
immediately before the cluster executable is spawned on the compute nodes.

This (with a matching epilogue) would give the users the functionality
they have had with conventional batch scripts.

Cheers!

On  6.05.08, Jan Ploski wrote:
> Gabriel Mateescu <[EMAIL PROTECTED]> schrieb am 05/06/2008 
> 03:37:43 PM:
> 
> > Hello,
> > 
> > It is not hard to accomplish that.
> > Think of it this way:  what you want to do is
> > kind of a "preamble", i.e., a set of commands to
> > precede the job execution.
> > 
> > This can be accomplished using the Extensions
> > elements of the jobs description.
> > 
> > For example, assume you want to load a certain
> > module, which will set things such as the path
> > to the MPI libraries.
> > 
> > Then you job description will look like this
> > 
> > <job>
> > <executable>/path/to/mpi/program</executable>
> >   ...
> > <extensions>
> >      <preamble>
> >      module load mpi-intel
> >      cd $HOME
> >   </preamble>
> > </extensions>
> > ...
> > </job>
> > 
> > 
> > The changes required to the LRMS adapter are
> > not difficult to make. I will post the changes for
> > SGE and PBS.
> 
> Is this an officially blessed Globus extension? If not, it will be 
> difficult to bring every target site administrator to install the modified 
> adapters? (Also, I think it would be more sensible not to include shell 
> code [which shell?] directly in the job description, but rather specify a 
> path to a Unix executable + arguments.)
> 
> Regards,
> Jan Ploski
> 
> --
> Dipl.-Inform. (FH) Jan Ploski
> OFFIS
> Betriebliches Informationsmanagement
> Escherweg 2  - 26121 Oldenburg - Germany
> Fon: +49 441 9722 - 184 Fax: +49 441 9722 - 202
> E-Mail: [EMAIL PROTECTED] - URL: http://www.offis.de
> 

-- 
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
Steve White                                             +49(331)7499-202
e-Science / AstroGrid-D                                   Zi. 35  Bg. 20
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
Astrophysikalisches Institut Potsdam (AIP)
An der Sternwarte 16, D-14482 Potsdam

Vorstand: Prof. Dr. Matthias Steinmetz, Peter A. Stolz

Stiftung privaten Rechts, Stiftungsverzeichnis Brandenburg: III/7-71-026
-  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 

Reply via email to