I have a Perl script that run automatic tests on Windows. It gets a directory as parameter and run each one of the exe files in it 3 times ( each time with different arguments ) The only problem I have is that sometimes the exe file may hangs for a long time or even crash. I’m not sure how to handle this with Perl, do I must use fork for this ?
I tried using several examples like this: Perl fork and kill - kill(0, $pid) always returns 1, and can't kill the child but could not understand where should I embed the exe I need to run in the examples also assuming I need to run the exe under the child, if the child process is killed does it also kill the exe ?
If you know any Perl fork for Dummies tutorial...