| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: shell and output redirection
> Programs are executed simultaneously. Pseudocode goes like this:
> create pipe
> fork process 1 {
>    open pipe for output
>   exec program 1 }
> fork process 2 {
>    open pipe for input
>    exec program 2 }
Ok, but if program 1 will issue a write request to the pipe now, shall it post process 2 and not continue before process 2 has completed?
As I saw from your trace, shell uses pipe() to create the pipe file descriptors for passing on data between processes. What if I create a pipe manually using mknod and run my two processes manually, does the data streaming work exactly the same way that with shell-generated pipe?
Tanel.
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Fri Jul 02 2004 - 15:16:16 CDT
![]()  | 
![]()  |