Revision [1024]

This is an old revision of CommandSleep made by DavidLee on 2009-11-25 13:59:46.


Command sleep

This command is part of the posix extensions and needs to be imported to be available to the shell.
See Posix Commands


sleep delays execution


sleep seconds


Delays execution in the current shell (thread) for the specified time.
Note: unlike the posix sleep command, seconds can be fractional (float).
As with the posix sleep command the delay is approximate, there is no guarantee that the delay will be accurate.

Example, delay for approx 2.5 seconds

sleep 2.5

Return Value

Returns 0 if the command executed successfully, 1 if there was an error.

There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki