libunique -- stdout, stderr redirecting to running instance, and not calling client
- From: Michael Treibton <mtreibton googlemail com>
- To: gtk-list gnome org
- Subject: libunique -- stdout, stderr redirecting to running instance, and not calling client
- Date: Mon, 14 Mar 2011 21:21:01 +0000
Hi all,
I've an application using libunique -- which is working fine. But one
thing this application does is print out key information, for
instance:
% ./foo -z
output_printed
Which in this case, starts "foo" and prints out "output_printed". On
subsequent calls to foo, like this:
% ./foo -z
output_printed
"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.
Michael
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]