What I want it to do is to use the HERE file as input to the mpirun command, and then pipe the output of the mpirun command to the tail command. However, I think the HERE file and tail output things are getting confused.
Any ideas on how should I write this so that it does what I want?