[Ace-users] [ace-users] Redirecting stdout
Douglas C. Schmidt
schmidt at dre.vanderbilt.edu
Fri Oct 5 09:17:16 CDT 2007
BTW, there are a bunch of examples of ACE_Pipe in
ACE_ROOT/tests/, e.g., ACE_ROOT/tests/Pipe_Test.cpp. I suggest you
take a look at them and see how the compare/contrast with what you're
>I ran into an ACE behavior which I don't understand.
>I have a program developed using the ACE framework which contains a
>When I run the program in a Linux environment, it prints "hello" to
>the console as expected.
>When I redirect stdout to a file (e.g. "myprogram > file") the string
>"hello" is written to the file as expected.
>However, when I pipe the output to some other process (e.g. "myprogram
>| cat") it appears that the string "hello" is never written into the
>Is this expected / explainable behavior? If so, is there a known way
>to make the pipe work?
>Thanks -- Bruno.
>PS - I did the same experiment with a simple C program without using
>ACE, and it that case the pipe works as expected.
Dr. Douglas C. Schmidt Professor and Associate Chair
Electrical Engineering and Computer Science TEL: (615) 343-8197
Vanderbilt University WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203 NET: d.schmidt at vanderbilt.edu
More information about the Ace-users