Hi Eliya,
Thanks a lot for the quick response !! It does work/display as I expected. It displays the error code that I am returning and the message. HOWEVER if I try this
command after execution of my script, I still get the value 0 for all the cases. Now am wondering if the above command is right or not for determinig the error code/exit code value.(I read somewehere that above command is equivalent of echo $? in linux).