[Hampshire] HERE files and output redirection

2011-05-16 Thread Robin Wilson
Hi all, I have the following code in a batch script: mpirun -np 6 ./laplace END 100 100 100 0.01 100 3 2 1 END | tail -n 1 output 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

Re: [Hampshire] HERE files and output redirection

2011-05-16 Thread Benjie Gillam
I think you want: mpirun -np 6 ./laplace HERE | tail -n 1 output You can add brackets to make it clearer: ((mpirun -np 6 ./laplace HERE) | tail -n 1) output Hope this helps? Benjie. On 16 May 2011 17:35, Robin Wilson ro...@rtwilson.com wrote: Hi all, I have the following code in a