in reply to Managing an asynchronous neverending external program

Hi all,

Realising I didn't give any feedback !

I finally managed to have it work the way I want using fork() and the Win32 API (Process, Console and Event).

My main script forks to call a second "son" script which creates the event, starts a new console and then forks and calls exec of my external program in that console.

I am then able to control the ending of the process from the main script.

Thanks for pointing me in the right direction !

Porax

  • Comment on Re: Managing an asynchronous neverending external program