MoshiachNow
IS-IT--Management
HI,
I need to run my subroutine in background,and timeout the sub after 120 seconds if it did not complete yet (got stuck somwhere in the middle...)
Read a lot of stuff on backgrounding on Windows,but can not make my mind on the simpliest way to go with this task.
Would appreciate advise.
(my current implementation does not work:
use Sys::AlarmCall;
alarm_call(120,'&processPDF',$myfile); #timeout of 2 minutes
)
thanks
Long live king Moshiach !
I need to run my subroutine in background,and timeout the sub after 120 seconds if it did not complete yet (got stuck somwhere in the middle...)
Read a lot of stuff on backgrounding on Windows,but can not make my mind on the simpliest way to go with this task.
Would appreciate advise.
(my current implementation does not work:
use Sys::AlarmCall;
alarm_call(120,'&processPDF',$myfile); #timeout of 2 minutes
)
thanks
Long live king Moshiach !