mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-06-21 01:18:21 +02:00
On pipe le stdout ...
This commit is contained in:
@ -39,7 +39,7 @@ from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
|
||||
import subprocess
|
||||
|
||||
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):
|
||||
cmd = ['/usr/sbin/arp','-na',ip]
|
||||
|
Reference in New Issue
Block a user