2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: sleep
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
2020-08-21 19:51:29 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Delay for a specified amount of time.
|
2020-08-21 19:51:29 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Signature
|
2020-08-21 19:51:29 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
```> sleep (duration) ...rest```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
- `duration`: time to sleep
|
|
|
|
- `...rest`: additional time
|
2020-08-21 19:51:29 +02:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Sleep for 1sec
|
2020-08-21 19:51:29 +02:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> sleep 1sec
|
2020-08-21 19:51:29 +02:00
|
|
|
```
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Sleep for 3sec
|
2020-08-21 19:51:29 +02:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> sleep 1sec 1sec 1sec
|
|
|
|
```
|
|
|
|
|
|
|
|
Send output after 1sec
|
|
|
|
```shell
|
|
|
|
> sleep 1sec; echo done
|
|
|
|
```
|