title: Redirection with Runtime.getRuntime().exec() doesn't work
body: <p>I need to execute a command from a program. The command line is ok, I tried it in the terminal, but it doesn't work in the program.</p>
  
  <p>I add a copy from my code:</p>
  
  <pre><code>  File dir = new File("videos"); 
    String[] children = dir.list(); 
    if (children == null) { 
     // Either dir does not exist or is not a directory 
     System.out.print("No existe el directorio\n");
     } else { 
      for (int i=0; i&lt;children.length; i++) { 
       // Get filename of file or directory 
       String filename = children[i];
  
       //Recojo el momento exacto
       System.out.print("\n" +filename);
  
       Process p = Runtime.getRuntime().exec("exiftool -a -u -g1 -j videos/"+filename+"&gt;metadata/"+filename+".json");
      }
  </code></pre>
  
  <p>The program must get the name of all of the files in a folder (filename) and extract the metadata of theese videos, writting them on a .json files in the folder 'metadata'.<br>
  Where is the problem?</p>