LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-19-2005, 10:32 AM   #1
okeyla
Member
 
Registered: Nov 2004
Posts: 47

Rep: Reputation: 15
pass message from console to UI?


I am writing a QT program , and would like to show the message from console.
They say "pipe" could make it.
But i don't know how to establish signal relation between pipe and UI program.

Anyone could show me an example and give me a hand?
Thank you very much!
 
Old 09-19-2005, 06:49 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,346

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
"I am writing a QT program , and would like to show the message from console.
They say "pipe" could make it.
But i don't know how to establish signal relation between pipe and UI program."

You open, read, write, and close a pipe as if it were an ordinary file. The difference between pipes and other files is in the way that a pipe is created. You create a pipe by using the function pipe which is declared in <unisted.h>. You create a pipe called meerschaum like this:

int pipe(int meershaum[2])

pipe creates two file descriptors. The file descripter meerschaum[0] is used for reading the pipe. The file descripter meerschaum[1] is used for writing the pipe.

http://eic.sourceforge.net/documentation/node146.html

---------------------
Steve Stites
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass data to a console program with multiple inputs? juanbobo Programming 3 08-18-2005 06:39 PM
Send message over console stefaandk Linux - Newbie 4 08-15-2005 07:48 PM
Console Message. Carpinus Linux - Newbie 4 01-15-2005 12:46 PM
pass message to other systems... stonegold84 Linux - Hardware 9 09-02-2003 06:40 AM
Console Message DigitalTygrrr Linux - General 2 04-23-2003 08:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration