Python, "subprocess.check_ouput()" hangs while installing rpm -


i trying install .rpm through subprocess.check_ouput() i.e.

buff=subprocess.check_output(["rpm","-ivh","package_name"]) 

even though package installed, python script stuck @ instruction (not executing below instructions.)

please note other "rpm" operation working subprocess.check_output()

after including shell=true, i.e.

buff=subprocess.check_output(["rpm","-ivh","package_name"],shell=true) 

package not getting installed , throwing error @ instruction, error : rpm usage

can help?


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -