[Israel.pm] catching segmentation faults and other crashes

Yona Shlomo yona at cs.technion.ac.il
Sun Nov 11 23:51:04 PST 2007


I'm executing a tool using backticks qx// and then parse its
output.

Sometimes the tool is crashing, e.g., with a segmentation
fault. In these cases the tool crashes after giving some
output.

Can you recommend a way to catch the crash of the tool,
despite the fact that it still emits some (possibly good)
output?

I'd like to avoid using a temporaty file in the process, if
possible.

Thanks

-- 
Shlomo Yona
yona at cs.technion.ac.il
http://yeda.cs.technion.ac.il/~yona/



More information about the Perl mailing list