title: How can I pipe stdin from a file to the executable in Xcode 4+?
body: <p>I have an mpi program and managed to compile and link it via Xcode 4.
  Now I want to debug it using Xcode 4.</p>
  
  <p>How can I pipe the standard input to the program from a file?</p>
  
  <p>In terminal I would type</p>
  
  <pre><code>mpirun -np 2 program &lt; input.txt
  </code></pre>
  
  <p>I am able to run the program defining a custom executable (mpirun) in the "Info" panel of the Scheme editor, I also know that I can pass arguments in the "Arguments" panel. But Xcode 4 does not seem to accept "&lt; input.txt" as an argument, even if I check "Use custom working directory" + add the correct directory of the input script in the "Options" panel.</p>
  
  <p><a href="http://algorithm.com.au/blog/files/2fd314dc0fa34252f7f8932bdccbdd7d-436.php" rel="noreferrer">This article</a> Says it is possible to use "&lt; input.txt" as an argument, but I guess that worked in Xcode 2 or Xcode 3, but it does not seem to work in Xcode 4 anymore.</p>