I have a unix script which checks if file exist or not. If file exist then script returns 0 else 1. I want to handle return code like this:
If return code =1 then run next job , if return code =0 then send email.
My job design is like:
Code: Select all
Execute command------RC=1-------->Run sequence
|
|
RC=0
|
|
Send Email
Now when Return code =0 then my sequence job works fine but when RC=1 then it gives warning that shell command did not finish ok.
Is there a way to handle return code other than 0?