how to store the return values of stored procedure in unix shell script.

hi

i am calling a oracle stored procedure(in the database) from unix shell scripting (a.sh).
the called stored procedure returns some values through OUT variables

i want to assign the return values of stored procedure in to unix shell script variable.

can you provide me the code.

Thanks.

var=$(database processing code) # assuming the proc o/p is exactly the o/p you need to store. else you need to some formatting.