Re: Threads/IPC/???
- From: Ed Kutrzyba <kutrzyba airborne nrl navy mil>
- To: gtk-app-devel-list gnome org
- Subject: Re: Threads/IPC/???
- Date: Thu, 16 Feb 2006 20:40:33 -0500
Thanks.
i was able to get the script working. g_spawn_async works great. I am
now having a problem using the g_spawn_async_with_pipes. The program I
am calling works fine as a standalone, but when I spawn it I have
trouble with it getting my input. Any hints or progamming examples?
The vendor who wrote the program used scanf(%d,&cmd); to get the input
from the command line, BUT write() sends chars out one byte at a time.
Is there a way to keep the scanf in the vendors program?
Thanks,
Ed
Gus Koppel wrote:
Ed Kutrzyba wrote:
I am developing an application that controls a "Data Collection
System". I used glade and anjuta for my GUI and C backend control coding.
My program works great, but I need to add some extra backround tasks:
1) I need to run a script (perl or bash) on demand without interfering
with my program. i.e. the script runs in the background so GTK is still
responsive.
http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html#g-spawn-async
2) I need to spawn a task to perform some background operations. i.e.
get time from an add in board, arm and disarm an interrupt routine that
time tags an external signal -- need to start and stop this on demand.
What is the best way to do this?
http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html#g-spawn-async-with-pipes
In general, see:
http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html
I have some code from the vendor to control the add in board, I just
need to massage it to fit into my app, my way.
See also:
http://mail.gnome.org/archives/gtk-app-devel-list/2004-April/msg00171.html
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]