How Do I Delay a Script in Linux?
Contents How Do You Write a Delay in a Script? the Delay Can Be Specified Either in Seconds (Default) or in Milliseconds. Start-Sleep -Seconds 10 # Wait 10...
Contents
How do you write a delay in a script?
The delay can be specified either in seconds (default) or in milliseconds.
- Start-Sleep -Seconds 10 # wait 10 seconds.
- Start-Sleep 10 # wait 10 seconds.
- Start-Sleep -Seconds 2.7 # wait 3 seconds, rounded to integer.
- Start-Sleep -MilliSeconds 500 # wait half a second.
Must Read
How do you delay a command in Linux?
/bin/sleep is Linux or Unix command to delay for a specified amount of time. You can suspend the calling shell script for a specified time. For example, pause for 10 seconds or stop execution for 2 mintues. In other words, the sleep command pauses the execution on the next shell command for a given time.