you are right
Let me explain a bit more...
The script is copy a file from one location to another and then A program is processing the file. What I want is to check if the copy was successful or not.
To do that I check the return code of the script. If is 0 then the cp was successful if is any other value I return error.
this was running successful for RED HAD advance server 2.1. If I run that application to RED HAD advance server 4.1 I receive the value 1 (not -1
) from the script even if the cp was successful!