This is not a great idea as it keeps the parent process running until its child exits. In Python, it keeps two processes running: the parent python process, and a shell to hold the os.system call (I think). You could get around this with a simple while or for loop in either language.
This is not a great idea as it keeps the parent process running until its child exits. In Python, it keeps two processes running: the parent python process, and a shell to hold the
os.system
call (I think). You could get around this with a simplewhile
orfor
loop in either language.