----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, November 29, 2006 2:30 PM
Subject: RE: Win32 and alarm


> > `` is blocking, so maybe use Win32::Process and time it with
> > Time::HiRes.  You may need to redirect the output to a file.
>
> sounds a heavy task.
> Any possibility to wait for ActiveState implementing it?
>

I don't think ActiveState *can* implement wait() to handle processes
launched with backticks. But they already provide you with the
Win32::Process module, which is the correct course of action ot take.

If I understand you correctly, you can just use Win32::Process's Wait() and
Kill() functions to implement the alarm - if the executable is launched
using Win32::Process's Create() function.

I don't see a need for either Time::HiRes or output redirection (though I
could be missing something).

Cheers,
Rob

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to