in reply to Re^2: simple timeout
in thread simple timeout

How 'bout this?
I'm making the assumption that you can create a process out of ...->GetObject(.);
On my win2K box this creates the processes every 5 secs. you can kill them in the if stmt if necessary...
use Win32::Process; ... ... my $pID; foreach (servers) { ... ... Win32::Process::Create ($pObj, Win32::OLE->GetObj..., ....); $pID = $pObj->GetProcessID(); $pObj->Wait(5000) # 5 secs // it's either been 5 secs or $pObj finished if ($pID is there) { then it's been 5secs cleanup and restart your loop } else { $pObj finished? } }