sleeping collection file
when minute collection record automate something windows box, i've indispensable delay the execution several seconds (usually test/wait loop, sharp slight start). during time, best fortitude i uses ping (i child not) grasp preferred effect. i've found improved write-up , describes callable "wait.bat", implemented follows:
@ping 127.0.0.1 -n 2 -w 1000 > nul
@ping 127.0.0.1 -n %1% -w 1000> nul
you following consolidate calls wait.bat your possess collection file, flitting array seconds sleep.
(at last!). meantime, those us still controlling windows xp, windows 2000 (sadly) , there improved way?
i run-down sleep.py book , defaults second arguments upheld management line:
import time, sys
time.sleep(float(sys.argv[1]) len(sys.argv) > 1 else 1)
Comments
Post a Comment