How can I run an external processes under control of a C program. That is, if I have a .exe, and I want the C (or C++) program to execute it, but then, I do not want the .exe to hog resources, and I do not want to wait long for it to finish. I need to make sure it is running, and I want to have the control to kill it if I need to, from within the C program.
In Windows there are API functions that can be used to launch an external process, you can use these from within a VB app, for example. The API functions are: CreateProcess, WaitForSingleObject, and TerminateProcess to kill it if necessary. You can launch such a VB program with IDLE_PRIORITY_CLASS so not to dominate the computer's resources and be able to do desktop work while the VB is running.
So, we would like to do that in Unix, and I think there should be something out there to do that. Can you help?
In Windows there are API functions that can be used to launch an external process, you can use these from within a VB app, for example. The API functions are: CreateProcess, WaitForSingleObject, and TerminateProcess to kill it if necessary. You can launch such a VB program with IDLE_PRIORITY_CLASS so not to dominate the computer's resources and be able to do desktop work while the VB is running.
So, we would like to do that in Unix, and I think there should be something out there to do that. Can you help?