由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 有人知道吗?Re: 怎样知道程序运行时间?time 什么来着?
相关主题
how to redirect error output under unixHelp, What happen to Audio output when using Exceed
how to see the output to stderr?my script Re: how would you do this?
how to redirect the outputhelp on building shared object
unix下编译fortran 的错误太多,看不到怎么办?How to merge stdout and stderr
请教How to get rid of the bg job id redirection?如何将到stderr的输出重定向到文件?
怎样知道程序运行时间?time 什么来着?AIX/ksh/xterm怎么设置可以在程序退出后恢复原来的屏
为什么time命令无法重定向?50伪币:请教perl代码差错的问题!多谢啦!
How to redirect error messages to a file?group permission
相关话题的讨论汇总
话题: output话题: filename话题: exe话题: time话题: 程序运行
进入Unix版参与讨论
1 (共1页)
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
1 (共1页)
进入Unix版参与讨论
相关主题
group permission请教How to get rid of the bg job id redirection?
怎样用mail把某一文本文件发送给一个email地址?怎样知道程序运行时间?time 什么来着?
what is the problem? what can I do?为什么time命令无法重定向?
how to contral tar-ed file size?How to redirect error messages to a file?
how to redirect error output under unixHelp, What happen to Audio output when using Exceed
how to see the output to stderr?my script Re: how would you do this?
how to redirect the outputhelp on building shared object
unix下编译fortran 的错误太多,看不到怎么办?How to merge stdout and stderr
相关话题的讨论汇总
话题: output话题: filename话题: exe话题: time话题: 程序运行