libunique -- stdout, stderr redirecting to running instance, and not calling client

Hi all,

I've an application using libunique -- which is working fine.  But one
thing this application does is print out key information, for

% ./foo -z

Which in this case, starts "foo" and prints out "output_printed".  On
subsequent calls to foo, like this:

% ./foo -z

"output_printed" is sent to the STDOUT of the original "foo" process,
and not the process I just run.  Is there a clever way around this?  I
need to capture the output from each run and use it elsewhere, and I
can't do that at the moment, as all messages sent via libunique's API
ensure the resultant output is to the single-running process.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]