问题描述:

nohup mpirun -np 20 ./wrf.exe &> wrf.log &

I know that to get the timing of the ./wrf.exe is simply

(time ./wrf.exe) 2> time.txt

But I am not sure how to include the other two options (nohup and mpirun) along with the -np 20 within that line to actually output the log with the timing of the execution.

网友答案:

You could use the 2&>1 to get stderror and stdoutput both to a file. Since that is what you do, first command you place stdoutput in to a file and second command you place stderror to a file.

相关阅读:
Top