Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting data from another program

Status
Not open for further replies.

UKMonkey

Programmer
Joined
Nov 27, 2003
Messages
3
Location
GB
Hi all,

I'm trying to get the tags from an mp3/ogg collection into a class, and rather than try to figure out how to obtain the tag information myself {which is pointless as it's been done} I'd rather either use a library, or id3ed. However, I'm not sure how to start.

I've used fork and exec functions before, and know that there's also a wait function, but I'm not sure how I can take the useful output from one program and use it.

An example that jumps to mind of the sort of thing that XCDRoast does... It's a GUI for burning CD's, but it uses another program to do the burning. It also happens to display the % done and speed ... so it must have some "communication" with the program doing the burning.

Thanks in advance,

James :)
 
Ah ... I forgot to mention, I also intend to use MySQL with this, so any pointers as to how to take terminal output and do something useful with it would be much appreciated :)
 
For interaction with MySQL try sql++ api. For more details look at mysql.com. But to burn use
system("command for burning there");

Ion Filipski
1c.bmp
 
Ok ... I'll have a look see if I can do something like system("xyz -a -b cde > /tmp/atempfile") and then look at atempfile file for the output ...

thanks for the reply :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top