Find the answer to your Linux question:
Results 1 to 2 of 2
I would like to create a thread and pipe all "printf" to a new terminal (kconsole or xterm) mean time the main program stays in different kconsole for more user ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    6

    Piping "printf" to a new terminal with a new thread


    I would like to create a thread and pipe all "printf" to a new terminal (kconsole or xterm) mean time the main program stays in different kconsole for more user inputs. Can you please help where I should start??

    Thanks in advance.

  2. #2
    Just Joined! wildpossum's Avatar
    Join Date
    Apr 2008
    Location
    Sydney/Australia
    Posts
    92
    Look at "man pipe -k" it wil give you all the different ways of handling pipes including named pipes. For your other threads you just open either the "named pipe" or pipe like file i/o. More reading is required on your part.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •