[torquedev] job exit status in epilogue script

Michael Barnes Michael.Barnes at jlab.org
Mon Nov 29 14:05:18 MST 2010


On Nov 29, 2010, at 4:02 PM, <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.

There is no $10 in bourne shell scripting for arguments.  It only goes from $1 to $9.
You will have to use $* or something else.

-mb

+-----------------------------------------------
| Michael Barnes
|
| Thomas Jefferson National Accelerator Facility
| Scientific Computing Group
| 12000 Jefferson Ave.
| Newport News, VA 23606
| (757) 269-7634
+-----------------------------------------------






More information about the torquedev mailing list