wait_for_event
Purpose:
-
Wait for a specified event or for a specified number of seconds.
Enter:
-
wait_for_event <event_name> [timeout in seconds]
Where:
-
event_name Specify the event name. timeout Optional. Specify the wait time in seconds. The default is 86400 (1 day).
Example:
-
wait_for_event myeventname
The example specifies the event to wait for using the default timeout.
Notes:
-
If the timeout is not specified, it will return:
0 — if the event was received
1 — if the timeout expires
-1 — if the event does not exist