I have a utility I need to run with system() that takes a varying amount of time to execute. Maybe a few seconds, maybe 20 minutes. Sometimes it wanders off into oblivion and never returns. When that happens, I need to kill and restart it.
Is there a way to have a timeout with a system() call, so I can do this kill-and-restart through Perl?