[torquedev] job exit status in epilogue script

Eirikur Hjartarson eirikur.hjartarson at decode.is
Tue Nov 30 01:03:38 MST 2010


On Tue, 2010-11-30 at 08:02 +1100, Gareth.Williams at csiro.au wrote:
> > -----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.

Should have known this, thanks.

-- 
Eiríkur Hjartarson      E-mail: Eirikur.Hjartarson at decode.is
Íslensk Erfðagreining   Mobile: +3546641898
Sturlugötu 7
IS-101 Reykjavík



More information about the torquedev mailing list