<br><br><div class="gmail_quote">On Fri, Apr 18, 2008 at 10:35 AM, Arnau Bria <<a href="mailto:arnaubria@pic.es">arnaubria@pic.es</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Fri, 18 Apr 2008 10:21:28 -0400<br>
Glen Beane wrote:<br>
<br>
<br>
> > > anything positive is set by the job, so if you use bash for your<br>
> > > shell you would check bash return values (e.g. if your job is<br>
> > > terminated with a fatal signal bash returns the signal number +<br>
> > > 128)<br>
> ><br>
> > Ok, and when the exit is less than 128? Exit staus=1 ?<br>
><br>
><br>
><br>
> Like I said, these exit status values are set by your job. You need<br>
> to look at your program documentation (and possibly bash<br>
> documentation) to find out.<br>
</div>Ok, I undesrtood that if my program eits with 1, torque will show me<br>
129, not 1.</blockquote></div><br><br>no, that is not true. Under normal circumstances Torque will show you whatever bash (if that is your shell) returns. Bash itself returns the exit status of the last command that was executed. If a command exits from a fatal signal then bash uses the signal number plus 128 as the exit value. If a command is not found then bash uses 127. If the command ws found but is not executable then bash uses 126 for the exit status. If torque reports the exit status of your job as 1 then whatever the last command that is executed in your script is returning 1.<br>