running jar file with multiple arguments in perl
<br>Im trying to run a jar file. this jar file will output multiple question in console manner, i want to eliminate the console and i need to input a value in order to proceed. 

<br>e.g :
<br>A. Choose value 1 :
<br>[1] Windows
<br>[2] Unix
<br>Input : 2 <Enter>

<br>B. Choose value 2 :
<br>[1] Oracle
<br>[2] DB2
<br>Input : 1 <Enter>

<br>Im trying :
<br><code>"java -jar program.jar < abc.txt" </code>where <br>abc.txt has a value of :
<br>2
<br>1
<br>3
<br>etc.
<br>but its not working its only getting the first value.
please help. thanks.

btw, ive also try  :

<br><code>OPEN PIPE, "| java -jar program.jar";
<br> open (FH, /abc.txt)
<br> print PIPE "$res";
<br> close FH;
<br>close PIPE;</code>

Regards
running jar file with multiple arguments in perl
===

<br>Im trying to run a jar file. this jar file will output multiple question in console manner, i want to eliminate the console and i need to input a value in order to proceed. 

<br>e.g :
<br>A. Choose value 1 :
<br>[1] Windows
<br>[2] Unix
<br>Input : 2 <Enter>

<br>B. Choose value 2 :
<br>[1] Oracle
<br>[2] DB2
<br>Input : 1 <Enter>

<br>Im trying :
<br><code>"java -jar program.jar < abc.txt" </code>where <br>abc.txt has a value of :
<br>2
<br>1
<br>3
<br>etc.
<br>but its not working its only getting the first value.
please help. thanks.

btw, ive also try  :

<br><code>OPEN PIPE, "| java -jar program.jar";
<br> open (FH, /abc.txt)
<br> print PIPE "$res";
<br> close FH;
<br>close PIPE;</code>

Regards