in reply to Re: Piping output from child to parent Tk widget
in thread Piping output from child to parent Tk widget

Hi,

Really thanks for the quick response.

I dont have a problem writing to STDOUT, the issue is writing to a text widget owned by the parent process.

The process which creates the output doesnt ever stop, it's running on a loop, so using run_on_finish wouldnt help

Thanks again for the reply.

  • Comment on Re^2: Piping output from child to parent Tk widget

Replies are listed 'Best First'.
Re^3: Piping output from child to parent Tk widget
by sierpinski (Chaplain) on Jul 01, 2010 at 16:37 UTC
    What is it that you want to write to the text widget? If it's something simple, a return code from the child process might suffice. Are you writing all of the ssh output to that widget?

    If it's not just a simple return value, it sounds like IPC (something like IPC::ShareLite) might be what you need. (I've never used it, but it seems pretty straightforward from what I've seen on the POD).

    Update: Misread part of your post, edited my response accordingly.