Schorschi
Posts: 205
Joined: Thu Nov 22, 2012 9:38 pm

Ruby script to parse debian stretch variant of iwlist?

Fri Jan 05, 2018 5:29 am

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.

richrarobi
Posts: 265
Joined: Sun Feb 08, 2015 1:13 pm

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

Thu Mar 22, 2018 7:53 pm

Could cheat a little:-
Ruby code

Code: Select all


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

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

Return to “Other programming languages”