Mercurial > repos > pieterlukasse > nist_wrapper
changeset 5:c3dc158717fc
test
author | pieter.lukasse@wur.nl |
---|---|
date | Thu, 22 Jan 2015 21:48:34 +0100 |
parents | 266b64154f57 |
children | e19a6fbcf1db |
files | nist_wrapper.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nist_wrapper.py Thu Jan 22 17:03:19 2015 +0100 +++ b/nist_wrapper.py Thu Jan 22 21:48:34 2015 +0100 @@ -128,12 +128,14 @@ subprocess.call(cmd) + timeSleeping = 0 # monitor process by checking state file: - while True: + while True or timeSleeping > 20: # check if SRCREADY.TXT is there already: if os.path.exists(file_to_monitor): break time.sleep(2) + timeSleeping =+ 2 # kill process: #p.terminate() - not needed, nistm$ will terminate...nistms.exe is the one that