I would like to do something like (Windows 7/10 underneath)
for i in range (1,254):
! ping -n 1 192.168.2.+str(i)
Reason behind: want to quickly scan my WLAN to see where responding IP addresses are (finding a repeater).
Is there a python package allowing for this directly and how do I pass a parameter to the bang command in the above (pseudo-) example?
OK, I found this working, but not elegant:
import os
for i in range (1,100):
n= "192.168.2."+str(i)
! ping -n 1 $n