Adam Shelly
10/3/2007 5:27:00 PM
On 10/3/07, ara.t.howard <ara.t.howard@gmail.com> 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