Passing argument from Java to Shell script

Hi All,

I want to pass array of argument from Java to a shell script.I can use process builder api and its exec() method to call the script,but the question is how to receive the parameter in the script.

Thanks in advance

---------- Post updated at 10:00 PM ---------- Previous update was at 06:29 PM ----------

any idea Gurus??

We are not "on call" here. You agreed not to bump posts when you registered, and your post is only an hour old. If you don't get answers immediately, wait!

If you pass the parameter into the script commandline, it will be received in the special variables $1, $2, $3, etc. The special variable $# tells you how many you have.