I am trying to send a variable to shell script from jsp. i.e
txtstr="xxx"
Process p=Runtime.getRuntime().exec("filename.sh txtstr");
or
Process p=Runtime.getRuntime().exec("filename.sh 'txtstr'");
But it is taking argument as a txtxstr but not its value. How to solve this?
Thanks