Revision [610]

This is an old revision of CommandSleep made by DavidLee on 2009-05-31 15:59:23.

 

Command sleep


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

Name

sleep delays execution


Synopsis


sleep seconds

Description


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.

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