Re: Redirecting output
- From: James Gregory <james linuxaus com>
- To: Ivo Andrejco <andrejcoivo yahoo com au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Redirecting output
- Date: 18 Feb 2003 12:01:29 +1100
On Wed, 2003-02-19 at 03:49, Ivo Andrejco wrote:
Hi everyone,
I am writing an application that connects to Postgresql. (I know am not
the only one.) And here's my problem. Postgresql writes error messages
to stdout, I would like to catch them and display in my application.
I was looking at similar problems in the list but they mostly invoke a
new process, open a pipe and that's it. In my case everything runs as one
process. Is there any way to do it without spawning a new process.
ummm, I'm a bit confused. All the postgres code I've written has just
got the error messages back from the library, no need to open anything
at all.
Are you using libpq or something else?
Anyway, the man page you're looking for is probably popen.
James.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]