Executing number of processes from a process
I wanted to know some method to run an executable from a process i.e. run one process using another.suppose there are 2 process which i need to monitor on 1.ProcessA and 2.ProcessB.:confused:
I need to check in another program called Main,whether ProcessA is running or not if it is running then move forward to check for ProcessB else if ProcessA is not running then Execute ProcessA and then Move forward to ProcessB.
I searched google and i found exec(),system() etc, but i dont want to use exec().and using system() my program waits for ProcessA to complete.so in need Main to start a process and move forward to check for another process w/o waiting for a process to be completed.:shock:
Or can i schedule a process by myself to run in my code.how to do this?
One more question:How to make a process run when we restart our machine?:lol: