Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://comet.sai.msu.ru/UNIXhelp/commanz/sleep.html
Дата изменения: Fri Jan 17 12:43:13 1997 Дата индексирования: Mon Oct 1 23:43:38 2012 Кодировка: |
To suspend the execution of a command for a specific amount of time use the command:
sleep time_in_seconds; command
The second command will not be carried out until the amount of time specified as an argument to the sleep command has elapsed. The semicolon (;) is used to allow the two commands to be entered on the same command line.
You can also enclose the commands in parentheses to group them together and then run the combined command in the background, allowing you to carry on working at the shell prompt:
(sleep time_in_seconds; command) &
This command is very useful if you need to do something else before a command is executed.