Caution: using pipe is complex compared to popen !
警告:使用pipe比使用popen复杂!
This is done with the system call popen(), which can open to a pipe to another process, either for reading or writing.
这是用系统调用popen()完成的,它打开到另一个进程的管道以用于读或写。
It shows appropriate use of some system calls and library functions from c, including fopen, fclose, access, setvbuf, perror, strerror, and popen.
它演示了对一些系统调用和c库函数的适当使用,其中包括fopen、fclose、access、setvbuf、perror、strerror和popen。
For complete flexibility, in Unix-like systems with a popen function, you can pre-process the file with text processing utilities before it is passed into the plot command.
为了获得更完全的灵活性,在具有popen函数的unix类系统中,在将文件传送给plot命令之前,可以使用文本处理实用程序对文件进行预处理。
This feature is implemented using the popen system call, which allows one process to open a pipe to another process, either for output or input. In this case we open a pipe to the command.
这一特性是用popen系统调用实现的,该系统调用允许一个进程打开到另一个进程的管道,将管道用于输出或输入。
Popen is implemented using pipe , fork , and exec .
popen是使用pipe 、fork和exec实现的。
Popen is implemented using pipe , fork , and exec .
popen是使用pipe 、fork和exec实现的。
应用推荐