当前位置: 动力学知识库 > 问答 > 编程问答 >

bash - How can I log the time of the execution of this terminal line?

问题描述:

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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: