I don't see what you are doing with $result, but one way is to capture the process ID from the shell:
$pid = `command && echo $$` ;I suggest you take a step back and start again with File::Find. I think you've overcomplicated your solution.
You might also try to prevent the OOM issue in the "solver" instead.
In reply to Re^4: Timeout and kill
by onelesd
in thread Timeout and kill
by nelson64
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |