Thanks guys, will have a look at them.

Paddy

On Wed, May 25, 2011 at 09:01:24AM -0700, Lipari, Don wrote:

> Paddy,
> 
> The attached slide provides a quick summary of all the prolog/epilog options 
> available.  It should help to zero-in on the best option for the scenario you 
> describe below.  If one of these is not suitable, Moe's suggestion to look at 
> SPANK would be next. 
> 
> Don
> 
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] 
> On Behalf Of Jette, Moe
> Sent: Wednesday, May 25, 2011 8:51 AM
> To: [email protected]
> Subject: RE: [slurm-dev] How to write output from slurm prolog/epilog scripts 
> to the user's output file..
> 
> The SPANK plugin mechanism if more flexible and may be a better option
> for your needs. See "man spank" for more information.
> ________________________________________
> From: [email protected] [[email protected]] On 
> Behalf Of Paddy Doyle [[email protected]]
> Sent: Wednesday, May 25, 2011 8:34 AM
> To: [email protected]
> Subject: [slurm-dev] How to write output from slurm prolog/epilog scripts to 
> the user's output file..
> 
> Hi,
> 
> I'm just wondering if there's a preferred way to get a prolog/epilog script to
> write output to the user's slurm-%j.out file (preferably as the user)?
> 
> E.g. to display summary stats about the job and maybe accounting info.
> 
> 
> I see from the man page that "Standard output and error messages are normally
> not preserved" and that it has to be explicitly written somewhere.
> 
> I'm currently looking at doing this with an EpilogSlurmctld (which will run 
> once
> per job) script that looks for the presence of "WorkDir/slurm-%j.out", and 
> then
> appends to that file.
> 
> That will fail if the user has specified a different output file.
> 
> And also, it would be nice to be able to run the command as the user, rather
> than SlurmUser (e.g. to be able to dump out the user's environment to help us
> track down errors because of wrong paths, incorrect modules loaded etc).
> 
> 
> Is one of the Epilog options the correct way to go about this, or is there
> something else I'm missing, maybe a plugin or something?
> 
> Thanks,
> Paddy
> 
> --
> Paddy Doyle
> Trinity Centre for High Performance Computing,
> Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
> http://www.tchpc.tcd.ie/
> 



-- 
Paddy Doyle
Trinity Centre for High Performance Computing,
Lloyd Building, Trinity College Dublin, Dublin 2, Ireland.
http://www.tchpc.tcd.ie/

Reply via email to