+ 1
STDOUT from running a command in python
Below code is not working and nothing is printed with print proc: import subprocess cmd = "adb install \"C:\Users\saleem\Downloads\Mo Vlogs_v2.1_apkpure.com.apk\"" proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) proc = proc.communicate()[0] print "*********************** " print proc But when I am running cmd manually its working and when I am running some other cmd like dir, adb devices, grep cmds then its working fine. Please help me
3 Respostas
+ 3
Pleqse spare me I am good with manipulating basics not dealing with these stuff 😂 where is Kuba Siekierynski?
+ 2
You mean it doesn't work on the Sololearn Cide Playground?
It might be because cide playground literally is for beginners
+ 1
$vengat i have tried on my notepad++ its not working