Quote:
Originally posted by WingMan
if the SQL is run in a child process then it will be this child process that is exited and not the parent script you are running. (i think)
Code:
After calling the child process try something like
if [ $? = "0" ]; then
echo "child process Ran ok"
else
echo "child process failed"
exit 3
fi
|
Thanks a lot for your help.
So i don't know if it's a child process and i don't think so.
The 'echo $?' instruction I have written after the SQL script is done to see what is the error code. But it's always 0 and i don't understand. I have written a call to a SQL stocked procedure which doesn't exist to exit with an error but it 's always 0.
That's the real problem.