1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-11-27 00:47:10 +00:00

On pipe le stdout ...

This commit is contained in:
Gabriel Detraz 2017-06-13 21:42:00 +02:00
parent b38db69db5
commit c75d6955f6

View File

@ -39,7 +39,7 @@ from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
import subprocess import subprocess
def apply(cmd): def apply(cmd):
return subprocess.Popen(cmd, stdin=subprocess.PIPE) return subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
def mac_from_ip(ip): def mac_from_ip(ip):
cmd = ['/usr/sbin/arp','-na',ip] cmd = ['/usr/sbin/arp','-na',ip]