|
发表于 2004-7-13 10:24:58
|
显示全部楼层
这是manpage中的解释:
The popen() function opens a process by creating a pipe, forking, and
invoking the shell. Since a pipe is by definition unidirectional, the
type argument may specify only reading or writing, not both; the
resulting stream is correspondingly read-only or write-only. |
|