android getRuntime().exec() with cat command
<p>I am using the process class to run this command</p>

<pre><code>/sdcard/file1.mpg /sdcar/file2.mpg &gt; /sdcard/out.mpg
</code></pre>

<p>Here is how I am trying to do it:</p>

<pre><code>Process processx = Runtime.getRuntime().exec(new String[] {"cat","/sdcard/file1.mpg /sdcard/file2.mpg &gt; /sdcard/out.mpg" });

BufferedReader in = new BufferedReader(new InputStreamReader(processx.getInputStream()));

String line = null;
while ((line = in.readLine()) != null) {
      System.out.println(line);
}

// Waits for the command to finish.
processx.waitFor();
</code></pre>

<p>The command works from terminal but not when I try the above, can anyone see why?</p>
