[torquedev] job exit status in epilogue script

Gareth.Williams at csiro.au Gareth.Williams at csiro.au
Mon Nov 29 14:02:36 MST 2010


> -----Original Message-----
> From: torquedev-bounces at supercluster.org [mailto:torquedev-
> bounces at supercluster.org] On Behalf Of Ken Nielson
> Sent: Tuesday, 30 November 2010 4:12 AM
> To: torquedev at supercluster.org
> Subject: Re: [torquedev] job exit status in epilogue script
> 
> On 11/29/2010 06:58 AM, Eirikur Hjartarson wrote:
> > Hi,
> >
> > Reporting a bug (I think) regarding the epilogue script (in
> > $PBS_HOME/mom_priv/).  We are using version 2.4.11 of Torque.
> >
> > The 10th argument to the epilogue script, that should be the exit status
> > of the job, is in our case the job-id (1st argument) with a zero (0)
> > appended.  There is always a zero appended, also when the exit status of
> > the job is not zero.

So when you reference $10 you get $1 with 0 appended.  That makes a perverse sort of sense but is probably a shell scripting problem rather than a torque problem.  Perhaps you need to use brackets to reference the 10th argument.

-- Gareth

> >
> > Is anybody else experiencing this?
> >
> > Regards,
> >
> I just checked the code in src/resmom/prolog.c to see if there were
> something I could see which might cause this to happen. I did not find
> it with a visual inspection. The code is pretty straight forward. Each
> argument supplied in the list is assigned just as described in
> documentation.
> 
> Can you post your epilogue script and a sample of the output?
> 
> Thanks
> 
> Ken Nielson
> Adaptive Computing
> _______________________________________________
> torquedev mailing list
> torquedev at supercluster.org
> http://www.supercluster.org/mailman/listinfo/torquedev


More information about the torquedev mailing list