From: Joel VanderWerf Date: 2009-09-02T09:35:18+09:00 Subject: Re: Process#poll Roger Pack wrote: > Joel VanderWerf wrote: >> Roger Pack wrote: >>> Question. >>> >>> Situation: >>> I want to start a process, then loop, checking for its status, so that I >>> can "know" when it finishes, and not block the Tk.mainloop. >>> >>> Anybody know how to determine runningness of a process in ruby? >>> Thanks! >> Don't the Process.wait family of methods do what you want? Maybe: >> >> Process.waitpid(pid, Process::WNOHANG) > > Interesting. I think that that's what Python's Process#poll uses > internally. Unfortunately it appears that both it and Process::WNOHANG > and Linux only (I'm on doze). Hmm. > -r The win32-process gem claims to handle some of that functionality... -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407