Re: HELP: cpu load graph plotting program



Questions like this are for gtk-app-devel-list. gtk-devel-list is for discussions of the development of gtk+ itself.

On Jun 26, 2005, at 2:26 PM, Kevin C. wrote:

Problem is, how can I get C/C++ to call or incorporate RRDTool command-line program into my GUI? Is there any way in C/C++ to call another program? I don't think there is.

Sure there is -- system(), in the standard C library, is a good place to start.

http://www.cs.utah.edu/dept/old/texinfo/glibc-manual-0.02/ library_23.html#SEC402

However, this solution seems rather heavyweight for a monitor that will run every second or so.


Or does anyone know a 3rd party graph plotting library that plots to GUIs like GTK/QT/SDL? Or maybe GTK-graph GTK-plot libraries?

One that comes to mind is GtkDatabox.
http://www.eudoxos.net/gtk/gtkdatabox/

You can also have a look at libgtop, the library implementing the functionality of GTop:
http://directory.fsf.org/libs/LibGTop.html


--
muppet <scott at asofyet dot org>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]