how to pass a file with parameters to a shell script from java
807569Aug 30 2006 — edited Aug 30 2006I have a sh script running on linux. This script prompts when started prompts for 4 questions, for which the answers are 1, 1, 1, Y. So now I need to invoke this from a java program and pass the parameters in a file from jave to the script. Can anyone tell me how to code this in java. The script works fine from command line.
Thanks in advance.