Re: Redirecting output
- From: Tristan Van Berkom <vantr touchtunes com>
- To: Ivo Andrejco <andrejcoivo yahoo com au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Redirecting output
- Date: Mon, 17 Feb 2003 12:26:04 -0500
fclose(stdout);
stdout = freopen("filename", "mode", stdout);
Cheers,
-Tristan
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.
Thanks Ivo
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]