Guest User

Untitled

a guest
Jul 19th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. import osproc, streams, strutils, os
  2.  
  3. let l = ""
  4. let ps = startProcess("/sbin/iwlist", "", ["wlp2s0", "scan"])
  5. let s = outputStream(ps)
  6.  
  7. while s.readLine(l):
  8. echo(l)
Add Comment
Please, Sign In to add comment