From 04022b7c0e6c9ae47ebf496d9087bfb0fd6be613 Mon Sep 17 00:00:00 2001 From: glondu Date: Tue, 4 Apr 2006 08:17:04 +0200 Subject: [PATCH] Plus besoin de sudo. darcs-hash:20060404061704-68412-2c01a3d42cd7bce662cdebc830247169a1df8a51.gz --- surveillance/arpwatch_sendmail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surveillance/arpwatch_sendmail.py b/surveillance/arpwatch_sendmail.py index 9e1a8016..ac268272 100755 --- a/surveillance/arpwatch_sendmail.py +++ b/surveillance/arpwatch_sendmail.py @@ -10,7 +10,7 @@ import sys, os, sre, smtplib find_mac = sre.compile(r'[0-9A-Fa-f]{1,2}(?::[0-9A-Fa-f]{1,2}){5}') def get_machine(mac): - s = os.popen("sudo /usr/scripts/gestion/whos.py --debug mac=%s" % mac).readlines() + s = os.popen("/usr/scripts/gestion/whos.py --debug mac=%s" % mac).readlines() if len(s) == 1: # En général, c'est la ligne "Aucun résultat trouvé" return ""