p*********b 发帖数: 5 | 1 我是想用命令 time exe-filename -> output-filename 输出刚运行过的exe file 耗时
到 output-file。 我试了,好像不行。怎么办? | w**n 发帖数: 88 | 2 output goes to stderr, redirect stderr instead
【在 p*********b 的大作中提到】 : 我是想用命令 time exe-filename -> output-filename 输出刚运行过的exe file 耗时 : 到 output-file。 我试了,好像不行。怎么办?
| a*a 发帖数: 23 | 3
耗时
firstly change to the b shell, just type sh or bash, then type following
time exe-filename > output-filenaem 2>&1
2>&1 will redirect standard error(2) and standard output(1) together .
ly
【在 w**n 的大作中提到】 : output goes to stderr, redirect stderr instead
|
|