In case of BASH
, you could parse the exit status of your program (can be referenced as $?
) and in the case of not being 0
(which is the exit status for normal termination), call exit 100
at the end of your jobscript.
The problem with this is, that your job will remain in the queue in state Eqw
and has to be deleted manually.
UPDATE: For every job you set to Eqw
your administrators get an email...