Sometimes my system call goes into a never ending state. To, avoid that I want to be able to break out of the call after a specified amount of time.
Is there a way to specify a timeout limit to system
?
system("command", "arg1", "arg2", "arg3");
I want the timeout to be implemented from within Perl code for portability, and not using some OS specific functions like ulimit.