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 wrote: > Hi all, > > I have the following code in a batch script:

[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 < 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 the HERE file and tail output things are getti