On Tue, Aug 28, 2012 at 2:12 PM, Joel Pearson <[email protected]> wrote:
> Considering the message about conversion from nil to integer, I'd expect
> the problem to be that either "cmd" or "@ncui_pid" is returning nil and
> can't be passed into the system command.
I don't think so:
cmd = "sudo kill -9 -#{@ncui_pid}"
...
system(cmd)
see http://www.itevenworks.net/~rgs/ruby/wifi-state-observer
cmd won't be nil and if @ncui_pid is nil this won't matter.
Kind regards
robert
--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/
-- You received this message because you are subscribed to the Google Groups
ruby-talk-google group. To post to this group, send email to
[email protected]. To unsubscribe from this group, send email
to [email protected]. For more options, visit this
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en