I thought you had mentioned

'Please help me how do I pass the variables to the UNIX script'

Let me know how exactly you are calling the proc??? Through unix script or third party tool?