From: Adam Shelly Date: 2007-10-04T02:27:00+09:00 Subject: Re: determining if a process is alive on windows On 10/3/07, ara.t.howard wrote: > # > def alive pid > #--{{{ > pid = Integer("#{ pid }") > begin > Process::kill 0, pid > true > rescue Errno::ESRCH > false > end > #--}}} > end > alias alive? alive > export 'alive', 'alive?' > > > i expect it won't work on windows but maybe i'm wrong? if so can > someone suggest code to accomplish this task? It works for me on windows too, but I've got 2 questions: I get "undefined method `export' for main:Object (NoMethodError)" What does export do? Where is it defined? And what are these comments for? #---{{{ #---}}} thanks, -Adam