python popen command.....wait until the command is finished

Posted by michele on Stack Overflow See other posts from Stack Overflow or by michele
Published on 2010-05-14T20:00:29Z Indexed on 2010/05/14 20:04 UTC
Read the original article Hit count: 297

Filed under:
|
|

Hi, I have a script where I launch with popen a shell command. The problem is that the script don't wait that popen command is finished and go forward.

om_points = os.popen(command, "w") .....

How can I tell to my python script to wait until the shell command has finished?

Thanks.

© Stack Overflow or respective owner

Related posts about python

Related posts about popen