in reply to system() with timeout
If you are using Win2K and above, I recommend the Win32::Job module. Some example code, using either Win32::Process or Win32::Job, can be found in Timing Windows commands.