Page 1 of 1

Ruby script to parse debian stretch variant of iwlist?

Posted: Fri Jan 05, 2018 5:29 am
by Schorschi
Ruby script to parse debian stretch variant of iwlist? I found a lot of sample scripts, but they all seem to break, fail to parse iwlist output right. And I am not great with regular expressions. Any help appreciated.

Re: Ruby script to parse debian stretch variant of iwlist?

Posted: Thu Mar 22, 2018 7:53 pm
by richrarobi
Could cheat a little:-
Ruby code

Code: Select all


NAME = '/sbin/iwlist'
puts
output =  `#{NAME}`
puts "#{output}"

Do what you like with the output .....