LinuxQuestions.org
Help answer threads with 0 replies.
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, 11: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, 07:49 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
"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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:39 PM
Send message over console stefaandk Linux - Newbie 4 08-15-2005 08:48 PM
Console Message. Carpinus Linux - Newbie 4 01-15-2005 01:46 PM
pass message to other systems... stonegold84 Linux - Hardware 9 09-02-2003 07:40 AM
Console Message DigitalTygrrr Linux - General 2 04-23-2003 09:54 PM


All times are GMT -5. The time now is 02:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration