I am using Raspbian and attempting to run a very simple cmd using python with the popen function. I am very new to linux and python
from subprocess import Popen, PIPE po = Popen(['airmon-ng', 'start wlan0 10'], stdin=PIPE, stdout=PIPE, stderr=PIPE) proc = Popen(args, stdout=PIPE, stderr=PIPE) out, err = proc.communicate() out returns
'\n\nusage: airmon-ng <start|stop|check> <interface> [channel or frequency]\n\n' The error msg returned can be created outside of the popen function when running only airmon-ng without parameters, which makes me believe that popen is not forwarding the args correctly.