Solved

Can output of a pipe be read in "realtime"?

Posted on 2004-10-18
4
183 Views
Last Modified: 2010-04-21
I have an app (using C/Motif on Unix) where I need to run a routine which can take minutes of processing time.  The problem of course is that the X events get blocked while this routine is running.  Can I use XtAppProcessEvent, called periodically during the long routine, to keep the GUI alive?  Will this save me from having to do a fork?
0
Comment
Question by:jimdgar
4 Comments
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
your routine should send an event to tell the GUI (X) that it finished, or whatever.
By the way, your title uses "realtime": how you're aware that X is far away from "relatime"
0
 

Author Comment

by:jimdgar
Comment Utility
ahoffman,

Can you elaborate on "send an event"?  I've since resolved this question myself, and I don't believe your vague answer warrants the points.
0
 

Accepted Solution

by:
modulo earned 0 total points
Comment Utility
PAQed with points refunded (100)

modulo
Community Support Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now