[EMAIL PROTECTED] wrote:
> Hello,
> 
> I hear that Win32 cann't use "alarm" for a timeout.
> The sample code in Camel book or Cookbook is not valid
> on Win32. Is this true even now?
> 
> I must execute some external command by @rc = `SOME.exe`,
> which may hung sometimes.
> These are SQLPLUS and FTP and any with -B(atch) option.
> Sometimes I can do by DBI and Net::FTP and... but sometimes
> I don't have a work-around.
> 
> Any idea?

`` is blocking, so maybe use Win32::Process and time it with
Time::HiRes.  You may need to redirect the output to a file.
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to