Wednesday, 15 April 2015

python - Scripts quits after launching Popen command -



python - Scripts quits after launching Popen command -

while true: command = 'cmd /c start chrome http://google.com' subprocess.popen(command) time.sleep(120)

when seek launch browser chrome using code in python, browser launches after script quits. there way launch browser , move on process next block of codes.

i tried changin/c /k , using subprocess.popen(command, stdout=subprocess.pipe).wait() in case neither quit nor process next block of codes

wait () wait launched programme terminate. without wait script go on after launching

python python-2.7

No comments:

Post a Comment