Re: how to parse output of an external program execution?
- From: David Orme <david coconut-palm-software com>
- To: Jamin Philip Gray <jgray writeme com>, Gnome List <gnome-list gnome org>
- Subject: Re: how to parse output of an external program execution?
- Date: Sat, 17 Jul 1999 21:32:19 -0400
Jamin Philip Gray wrote:
> > >Is there a away to execute an external program and parse it's output using the
> > >gnome-libs?
> > This is a little vague.
> > You can run an external program and retrieve its output using the popen()
> > function in the standard C library. 'man popen' for info.
> > Any parsing should be pretty much independant of running the external
> > program - you'd need to say what data you want to parse in order for us to
> > tell you whether the parser is in GNOME or not :)
> What I'm doing is calling a program that generates text (XML). I want to parse
> the output of an external program that generates XML.
In addition to popen, I suggest you look into the gnome-xml libs then. This should
get you up and running.
David Orme LINUX...
firstname.lastname@example.org ...it already goes there
] [Thread Prev