Hi,

Thanks again!

Now, I get error "test: argument expected" on the line where I have
if [ $ReturnStatus -eq 0 ]; then

Also, it returns NULL value for ReturnStatus variable if I do echo "ReturnStatus = " $ReturnStatus right before the above if condition.

Do I need to make any change in the pl/sql procedure in the database to make the Unix script to run?

Thanks,

Samir