Pour les nouvelles bornes, chemin complet (en attendant de trouver o

est dfini le PATH)

darcs-hash:20041228123640-d1718-f1cbc8e7f037dfb0a50d858fc45f44c747903d0e.gz
This commit is contained in:
bernat 2004-12-28 13:36:40 +01:00
parent fcc46e0a53
commit 6887ba31a4

View file

@ -627,7 +627,7 @@ def borne_clients(borne) :
for clef in ["/etc/wifi/ssh/wifi","/usr/scripts/gestion/clef-wifi"]: for clef in ["/etc/wifi/ssh/wifi","/usr/scripts/gestion/clef-wifi"]:
if os.path.isfile(clef) and user_tests.isadm(): if os.path.isfile(clef) and user_tests.isadm():
try: 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() wl.tochild.close()
for line in wl.fromchild.readlines(): for line in wl.fromchild.readlines():
# Chaque ligne est de la forme # Chaque ligne est de la forme