diff --git a/gestion/whos.py b/gestion/whos.py index 37949fb9..31d6c20a 100755 --- a/gestion/whos.py +++ b/gestion/whos.py @@ -627,7 +627,7 @@ def borne_clients(borne) : for clef in ["/etc/wifi/ssh/wifi","/usr/scripts/gestion/clef-wifi"]: if os.path.isfile(clef) and user_tests.isadm(): try: - wl = popen2.Popen3("ssh -o StrictHostKeyChecking=no -i %s root@%s 'for mac in $(wl assoclist | cut -f 2 -d \" \"); do rssi=$(wl rssi $mac 2> /dev/null | cut -f 3 -d \" \") ; echo $mac $rssi ; done' 2> /dev/null" % (clef, borne)) + wl = popen2.Popen3("ssh -o StrictHostKeyChecking=no -i %s root@%s 'for mac in $(/usr/sbin/wl assoclist | cut -f 2 -d \" \"); do rssi=$(/usr/sbin/wl rssi $mac 2> /dev/null | cut -f 3 -d \" \") ; echo $mac $rssi ; done' 2> /dev/null" % (clef, borne)) wl.tochild.close() for line in wl.fromchild.readlines(): # Chaque ligne est de la forme