From: Me Me Date: 2008-06-30T19:54:11+09:00 Subject: Re: Sleep in a multithreaded environment Hi, I tried this: pipe=IO.popen("hang.exe") io=select([pipe],nil,nil,10) #10 - timeout if io==nil puts "DEAD" end with hang.exe a process that just hangs. It doesn't seem that the process is launched at all, and it goes on without waiting. Basically I just need to parse an executable output line by line and trigger an exception if I don't get any line after a certain amount of time. -- Posted via http://www.ruby-forum.com/.