它演示了如何在管道中以及在输入、输出和错误流重定向的情况下使用该工具。
It shows how to use the tool in pipelines and with redirection of input, output, and error streams.
通过使用子外壳,可以对整个块(而不是单个命令)的标准和错误输出进行集体重定向。
Using the subshell, you can collectively redirect their standard and error output for the entire block instead of for each individual command.
如果希望将错误或标准输出组合为单个文件,请使用编号重定向(请参见清单4)。
If you want to combine error and standard output into a single file, use numbered redirection (see Listing 4).
Shell重定向可以方便地将标准程序输出、程序错误消息或者这两者捕获到文本文件。
Shell redirection can be handy in capturing standard program output, error messages from a program, or both to text files.
因为您对标准输出和错误进行了重定向,所以您甚至可以为整个过程生成日志。
Because you redirected the standard output and error, you can even generate a log of the whole process.
bashshell允许重定向Linux或UNIX系统上的标准输入、标准输出和标准错误。
The bash shell lets you redirect standard input, standard output, and standard error on a Linux or UNIX system.
如果想要消除这些消息,可以重定向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.
实际上,您仍然可以对标准错误使用重定向或管道命令,但不能对标准输出使用,因为没有任何标准输出—正在内部使用popen函数由管道将它输送至lp进程。
Actually, you can still redirect or pipe stderr, but not stdout, since there will not be any standard output — it's being internally piped to the lp process using the popen function.
这是SSH的一个突出的优点,远程计算机重定向到相同的位置(标准输出、标准错误),所以您可以在本地进行重定向,同时保持输出结果的含义。
This highlights one of the benefits of ssh-the remote machine redirects to the same location (standard output, standard error), so you can redirect locally while retaining the meaning of the output.
您可能需要使用此方法将适当的默认值或错误消息输出到将要刷新的屏幕中,或者可能将整个浏览器重定向到错误屏幕中。
You'll probably want to use this method to put a nice default or error message in the part of the screen you were about to refresh, or perhaps redirect the entire browser to an error screen.
在标准输出已被重定向至其它源,而您希望在同一命令行上将标准错误也写至同一目的地时,该特性就非常有用。
But this feature is useful when stdout has already been redirected to another source, on the same command line, and you want stderr to go to the same destination. For example.
同时,selpg进程在后台运行,并且标准输出和标准错误都被重定向至文件。
Meanwhile, the selpg process runs in the background, with stdout and stderr both redirected to files.
这是事实。虽然你总是可以重定向标准输出和标准错误输出,没有什么比命令行错误消息好。
That's true. Although you can always redirect stderr and stdout, nothing beats a good command line error message.
这是事实。虽然你总是可以重定向标准输出和标准错误输出,没有什么比命令行错误消息好。
That's true. Although you can always redirect stderr and stdout, nothing beats a good command line error message.
应用推荐