runtime.exec() taking infinite time to execute code
<p>I want to execute a command which takes 2 arguments.
1.input file name
2.output file name.</p>

<p>The command is sixV1.1 outputFile.txt
The code is:</p>

<pre><code>   String cmd= "sixV1.1 &lt;inputFile.txt &gt;outputFile.txt";
   Process p=Runtime.getRuntime().exec(cmd);
   int retValue=p.waitFor();
</code></pre>

<p>when the i run above code,it is taking infinite time.
Is it possible to give &lt;, > charecters in cmd .Please suggest me.... </p>
