How to end a host concurrent program in WARNING?

Hi,

I want to end a host (shell script based) concurrent program in WARNING. Is it possible? Tried out a few things but it just either ends in NORMAL or ERROR. :confused:
Any ideas/inputs would be appreciated.

Thanks,
coolblue_3

Within a script, an exit nnn command may be used to deliver an nnn exit status to the shell (nnn must be a decimal number in the 0 - 255 range), so setting up "WARNING = 255" and then :
if [condition] then exit ${WARNING} should be ok for you.

Hi sysgate,

Thanks for your reply. Well I'm a novice when it comes to shell programming. Can you please elaborate on setting up "WARNING = 255"?
I know the exit part though :o

Thanks,
coolblue_3