Python subprocess arguments | Sololearn: Learn to code for FREE!


Python subprocess arguments

How do I use variable inside subprocess arguments like: iface = "wlan1" cmd =['iwconfig ' + iface + "' | grep 'Mode' '"] ) it's giving me errors

8/7/2022 10:27:58 PM

Karol Trawa

1 Answer

New Answer


What errors? And it may be the arguments supplied it should be a list of them all seperately. Also, check this out: