I have a command in terminal which doesn’t finish. I mean it’s not like “ls” which after executing finishes. I am using this command in my python code, so I need it to finish ! because I have to proceed. Any idea how to do it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It looks like you can just use Python’s
Popento create a child process and then not wait for the child process to completehttp://docs.python.org/library/subprocess.html