Launching an application within program runtime
Hi, I am currently doing a program where I am receiving data via sockets and writing this data on a file (this is a video file). Now I need a mechanism so that when a certain number of packets have been received I launch a program automatically opening the file.
I've already tried opening the file manually and after a certain amount of time video playback starts.
The problem of course is not keeping track of the packets received but launching a program while execution of the program continues. Any suggestions and what concepts in particular do I need to learn? My current knowledge of C++ is standard (up to processing files, pointers etc. and basic usage of sockets)
I'm programing in C++, using Linux OpenSuse 10.3.
thanks in advance