Shell Commands/WaitForLib

From MorphOS Library

Revision as of 12:18, 7 March 2015 by JPV (talk | contribs) (Created page with "'''WaitForLib''' - Waits 10 seconds for library to appear LIBNAME/A, I=INTERVAL/K/N, L=LOOP/K/N <nowiki> LIBNAME - Name of the library to wait for INTERVAL - Number of seco...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Shell Commands

WaitForLib - Waits 10 seconds for library to appear

LIBNAME/A, I=INTERVAL/K/N, L=LOOP/K/N

LIBNAME  - Name of the library to wait for
INTERVAL - Number of seconds between each check for a library (default = 1).
LOOP     - Number of times to check for library (default = 11 (0 = infinite)).

NOTE: WaitForLib waits the given number of seconds after each check, thus the total number of seconds is not INTERVAL*LOOP, but INTERVAL*(LOOP-1)!