I have an mpi program and managed to compile and link it via Xcode 4. Now I want to debug it using Xcode 4.
How can I pipe the standard input to the program from a f
Try the following pre-action run script:
mv program program.real echo -e '#!/bin/sh\nmpirun -np 2 program.real < input.txt' > program
Maybe this will trick XCode into executing your program as you would like it to be executed.