--------------------------------------------------------------------------------
When redirecting STDIN and STDOUT in the Bourne and Korn shells, you can omit the file descriptors 0 and 1 from the redirection symbols. You must always use the file descriptor 2 with the redirection symbol.
The 0 and 1 file descriptors are implied, and not used explicitly for the C shell, as shown in Table 16-8. The C shell representation for standard error (2) is an ampersand (&). STDERR can only be redirected when redirecting STDOUT.
[i:8ee48ac867]Table 16-8 C Shell Redirection Metacharacters [/i:8ee48ac867]
--------------------------------------------------------------------------------
[color=red:8ee48ac867]Description Command
Redirect STDOUT to file > file
Take input from file < file
Append STDOUT to end of file >> file
Redirect STDOUT and STDERR to file >& file
Append STDOUT and STDERR to file >>& file [/color:8ee48ac867]
使用
But how to use exec? documents?
文章整理:西部数码--专业提供域名注册、虚拟主机服务
http://www.west263.com
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




