I am facing problem in collecting the output(stdout, stderr) of child
processes on Windows.
I am working in C and using the APR(Apache Portable Runtime) library. APR's
routines for process creation and redirection are being used.

My program calls the perl engine to execute a perl script. Before creating
this child process(perl execution), its stdout and stderr are redirected to
some file. Once this child process is spawned, its outputs are rightly
directed to specified file. This works fine if the called process writes
directly to STDOUT.

The problem occurs if this child process internally calls another process.
This grand child's output is not getting redirected to that specified file.
This grand child is getting spawned using "system" in the perl script. Note
however that the output is visible on the console that pops up.

The same code works fine on Linux.

I am using Windows 2000, apr-1.0.1 Release.

Any help would be much appretiated.


This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].