Solved

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

Posted on 2004-10-18
4
187 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
ID: 12388951
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
ID: 12488334
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
ID: 12689612
PAQed with points refunded (100)

modulo
Community Support Moderator
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

792 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