ccwhite1
ccwhite1

Reputation: 3775

python how to force subprocess.call to not wait for the called command to complete

Im using subprocess.call to execute a bat file. subprocess.call is waiting for the bat file to complete before it continues. I want it to start the bat then continue on. Looking at the documents for subprocess it didnt look like it had an option to not wait for the command to complete.

Is there a way to do this or another option besides subprocess.call?

Upvotes: 4

Views: 2000

Answers (1)

Sebastian Blask
Sebastian Blask

Reputation: 2938

subprocess.Popen is what you are looking for!

Upvotes: 9

Related Questions