i managed to use the fork() function and till here we're good (thanks, looked at a quick tutorial and really saved me some time )
i'm having some trouble using the exec() function
Code:
if (packetsrcvd == 850)
{
pid_t pID = vfork();
if (pID == 0)
{
long counter = 0;
cout << "\nProcess created succesfully..." << endl;
execl("/bin/sh", "-r", "-t", "-l", "video_in.3gp", (char *) 0);
}
}
Finally i need to launch a video player to launch that 3gp file. So of course my code is currently incorrect since /bin/sh is expecting to execute an executable. So my next query is how will I be able to pass that video filename to an application.
thanks