+ 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

6th Sep 2017, 8:09 AM
Saleem Hussain
Saleem Hussain - avatar
3 Réponses
+ 3
Pleqse spare me I am good with manipulating basics not dealing with these stuff 😂 where is Kuba Siekierynski?
6th Sep 2017, 10:55 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
You mean it doesn't work on the Sololearn Cide Playground? It might be because cide playground literally is for beginners
6th Sep 2017, 8:19 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 1
$vengat i have tried on my notepad++ its not working
6th Sep 2017, 10:54 AM
Saleem Hussain
Saleem Hussain - avatar