Re: Console screen from spawn_process
- From: "Paulo Flabiano Smorigo" <pfsmorigo gmail com>
- To: "Armin Burgmeier" <armin arbur net>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Console screen from spawn_process
- Date: Mon, 20 Oct 2008 17:18:27 -0200
Hi Armin,
Thanks for the reply and the code. I saw it and notice that you don't use the stdin of the spawn process. In my program I will need this.
You sad that even if I compile with -mwindow I will have stdin and stdout. So I compile and doing some tests I discover that the stdout is working but if I try to send commands to stdin with the command "write(&stdin, "my command", strlen(size_of_my_command))" there is no result.
I trying to figure out what I'm doing wrong... Maybe you could help me...
Thanks again...
Paulo Flabiano Smorigo
On Sat, Oct 18, 2008 at 11:26, Armin Burgmeier
<armin arbur net> wrote:
On Thu, 2008-10-16 at 15:01 -0200, Paulo Flabiano Smorigo wrote:
> Hi Armin,
>
> Thanks for the fast reply!
>
> I compile the child process with the "-mwindows" parameter but the
> problem is that I need to communicate with the child using stdin and
> stdout by the method spawn_process_with_pipes but with "-mwindows"
> there is no stdin and stdout...
There still is, you just don't see it. You can use stdin and stdout for
communication even when there is no console window.
> So, there is no solution? I will have to understand the CreateProcess
> API ?
I did the same thing in Glom. Maybe it's helpful:
http://svn.gnome.org/viewvc/glom/trunk/glom/libglom/spawn_with_feedback.cc?view=markup
> Even if I have a system() call in the application this blank console
> appears... :(
>
> If the bug is WONTFIX means there will be no fix?
Most likely not.
> Thanks...
> Paulo Flabiano Smorigo
Armin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]