如何替换标准错误消息吗?
标准错误是程序在执行当中可能报告的错误。
The standard error is where the program reports any errors encountered during execution.
此出口称为标准错误设备(通常简称为stderr)。
The outlet is called the standard error device (usually referred to as stderr).
stderr是标准错误流,显示命令中的错误输出。
stderr is the standard error stream, which displays error output from commands.
然而,如果出现了错误,将显示发送到标准错误的错误消息。
However, if you make a mistake, error messages, which are emitted to standard error, are displayed.
但是使用标准错误重定向,也可以将错误重定向至文件。
But, using redirection of stderr, errors can also be redirected to go to a file. For example.
另外一个例子是重定向给标准错误(sys . stderr)。
Another example is to redirect to standard error (sys.stderr).
如果想要消除这些消息,可以重定向ij工具的标准输出和标准错误。
If you want to eliminate those, you can redirect the ij tool's standard output and standard error. For example, if you're working in the Bash shell, you can do this with.
检验评判标准错误导致化学成份不符,力学性能达不到要求。
The error standards of the inspection & judgement caused the non-conformity of chemical ingredients and fails to reach the requirement of mechanical performance.
这种情况下的标准错误消息不包含关于验证动作为何失败的任何具体信息。
The standard error message for this case does not contain any specific information on why the validation action failed.
第一个全局变量是标准错误消息(存储在sys_errlist中)的数量。
The first is the number of standard error messages stored in sys_errlist.
平均吞吐量的统计信息和复制的字节印总量被打印到标准错误输出设备。
Statistics of average throughput and the total amount of bytes copied are printed to the standard error output.
但其他的一些命令则使用标准输出和标准错误,并按顺序显示处理过程和错误消息。
But others use standard out and standard error to show progress and error messages, in that order.
错误消息(在调试时使用)用来打印标准错误,它使用的是 stdio 头文件。
Error messages (used in debugging) are printed to standard error, using stdio.
默认情况下,标准输入从键盘读取,同时标准输出和标准错误会打印到屏幕。
By default, standard input is read from the keyboard, while standard output and standard error are printed to the screen.
让标准错误流写入到multilog进程的管道,这个管道已经连接到了标准输出流。
Makes the standard error stream write to the pipe to the multilog process that is already connected to the standard output stream.
在这个示例中,您可以看到PID 2452打开文件的文件描述符为2(标准错误)和7。
From this, you can see that PID 2452 has the file opened on file descriptors 2 (standard error) and 7.
在运行这个命令时,您将输出发送到两个日志文件,一个用于标准输出,另一个用于标准错误。
When running the commands, you send the output to a couple of log files, one for standard output and the other for standard error.
同时,selpg进程在后台运行,并且标准输出和标准错误都被重定向至文件。
Meanwhile, the selpg process runs in the background, with stdout and stderr both redirected to files.
研究程序包括假装游戏的拍摄、麦卡锡幼儿言语智力测验和两类标准错误信念任务。
All subjects are videotaped for pretend play and measured upon MSCA-CR Verbal Test and standard false belief tasks.
如果您仔细观察,那么可能会发现,前面的这些示例中并没有出现标准错误(stderr)流。
If you've been paying attention, you've probably noticed that the standard error (stderr) stream isn't represented in any of those examples.
在命令管道中作为组件工作(通过读取标准输入或文件名参数,以及写至标准输出和标准错误)。
Working as a component in a pipeline of commands (by reading either standard input or a filename argument, and writing to standard output and standard error).
引出标准错误描述的perror和strerror函数来自sys_errlist全局变量。
The perror and strerror functions that pull standard error descriptions come from the global variable, sys_errlist.
例如,在我们的应用程序中,标准错误信息将显示在消息行中,正好在屏幕下部的功能键显示区之上。
For example, in our applications, the standard error message will be displayed in the message line, just above the function key line in the lower part of screen.
这是事实。虽然你总是可以重定向标准输出和标准错误输出,没有什么比命令行错误消息好。
That's true. Although you can always redirect stderr and stdout, nothing beats a good command line error message.
这个函数通常用于打开一个指定的文件使用预先定义的流:标准输入,标准输出,标准错误。
This function is typically used to open a specified file as one of the predefined streams: standard input, standard output, or standard error.
bashshell允许重定向Linux或UNIX系统上的标准输入、标准输出和标准错误。
The bash shell lets you redirect standard input, standard output, and standard error on a Linux or UNIX system.
不怀好意的攻击者可能启动一个程序而只是对它的标准输入、标准输出或者标准错误做一些奇怪的事情。
Sneaky attackers may start a program but do strange things to its standard input, standard output, or standard error.
assert_death比assert_exit简单;它只检查标准错误中的错误消息是否是用户期望的消息。
ASSERT_DEATH is simpler than ASSERT_EXIT; it just compares the error message in standard error with whatever is the user-expected message.
为了示范基本的技术,清单1中的Python代码使用动态特性将所有的远程方法调用记录到控制台的标准错误中。
To demonstrate the basic technique, Listing 1 shows Python code that USES dynamic features to log all invocations of a remote method to standard error on the console.
应用推荐