# HG changeset patch # User pieter.lukasse@wur.nl # Date 1421959714 -3600 # Node ID c3dc158717fc382b64ee2c539ae35cf69ddbb031 # Parent 266b64154f57d297f631f3c4a3257487ef9400f8 test diff -r 266b64154f57 -r c3dc158717fc nist_wrapper.py --- 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