What is the process to run sub-process with pipes that connect both input and output?

Answer Posted / siva kumar reddy dandu

try to use subprocess module
x = subprocess.popen(command)
x.read()

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is flask?

498


What is singleton class in python?

447


What is numpy in python?

497


How would you randomize the contents of a list in-place?

482


What is whitespace in python?

476






What does defined by whitespace in python?

469


Is empty function in python?

477


What mode is used for both writing and reading in binary format in file.?

523


What can I create with python?

470


Is python faster than python2?

460


What is repr() function in python?

472


Do sheeps sleep?

466


What is enumerate python?

443


Does python have a switch-case statement?

476


How do I get numpy in python?

444