jaydot has asked for the wisdom of the Perl Monks concerning the following question:

hi to all monks, im using ubuntu right now.. i just want to ask if it possible to get or retrieve error messages from the terminal and use it to display real time messages on my text widget.. what command should i use?..

  • Comment on retrieving error messages on terminal and placing it on a text widget

Replies are listed 'Best First'.
Re: retrieving error messages on terminal and placing it on a text widget
by Corion (Patriarch) on May 25, 2010 at 06:56 UTC

    Your question is quite unclear to me. I suppose that you are using some kind of GUI toolkit, like Tk, Wx or Gtk, and are spawning a child process whose output you want to display to the user.

    If that is a correct interpretation, then something like IPC::Open3, something from perlipc or the appropriate "spawn a child and run it" method from your GUI toolkit might be what could be made to work for you.