You need a third fork to run the echo() and grep() suimutaneously. With your code, you will hang on the waitpid() in the echo().
-Erik
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: egawtry Search: Search took 0.05 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |