Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: shell and output redirection

RE: shell and output redirection

From: <Ganesh.Raja_at_barclayscapital.com>
Date: Fri, 2 Jul 2004 21:20:14 +0100
Message-ID: <34D7360B56EFC0428F83565A3E1880E8F4BE37@LDNPSMEU002VEUA.INTRANET.BARCAPINT.COM>


I was quite stunned to Know that is wahat happened.. I always tHought that Pipes as the Nomal "|" does two Process Parallely ... Something new Learnt ... :)

Cheers,
Ganesh R

-----Original Message-----
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Tanel P=F5der
Sent: 02 July 2004 21:18
To: oracle-l_at_freelists.org
Subject: Re: shell and output redirection

> Programs are executed simultaneously. Pseudocode goes like this:=20
> 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.



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------


------------------------------------------------------------------------
For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.


Internet communications are not secure and therefore the Barclays=20
Group does not accept legal responsibility for the contents of this=20
message.  Although the Barclays Group operates anti-virus programmes,=20
it does not accept responsibility for any damage whatsoever that is=20
caused by viruses being passed.  Any views or opinions presented are=20
solely those of the author and do not necessarily represent those of the=20
Barclays Group.  Replies to this email may be monitored by the Barclays=20
Group for operational or business reasons.

------------------------------------------------------------------------

----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
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:18:14 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US