Apr 27, 2017

[HDGEM] Bash Script Sleep or Delay a Specified Amount of Time

You need to use the sleep command to add delay for a specified amount of time. The syntax is as follows for gnu/bash sleep command:

sleep NUMBER[SUFFIX]

Where SUFFIX may be:


s for seconds (the default)
m for minutes.
h for hours.
d for days.
To sleep for 5 seconds, use:
sleep 5

To sleep for 2 minutes, use:
sleep 2m


--
Posted By Blogger to HDGEM at 4/27/2017 09:01:00 AM