Last Activity: 8 February 2016, 5:12 PM EST.
Time, report how long it takes for a command to execute.
If that's not suitable, the fotomagico for mac review next easiest thing to do is build or obtain sleep from GNU coreutils, this supports the required feature.Suffix may be " s " for seconds (the default " m " for minutes, " h " for hours, or " d " for days.'wait 5' command doesnot seem to be working?After that, I give sendmail a second break by calling the Linux sleep command.For more information, just search this site, or see the Related section for other while loop and shell script tips.What exactly is the scenario.
While youre at it, can you show how to use the sleep command in the shell script while loop?
Some implementations require that number be an integer, but modern.
You can also use floating point numbers.By, gary Newell, updated October 26, 2017, this guide shows how to use the Linux sleep command to pause a bash script.Gopsman #, supporter (in vino veritas join Date: Feb 2005.If and when it is set correctly you need only enable -f filename commandname as required.).You can achieve the same thing by using the man command as follows: man sleep, the -version command shows the version of the sleep command that is installed on your system.S - seconds m - minutes h - hours d - days, when it comes to waiting days for something to happen it might be worth considering using a cron job to run the script at regular intervals as opposed to having a script running.Posts: 25, thanks: 0, thanked 0 Times in 0 Posts wait for 5 seconds in shell script hi how can i wait for 5 seconds inside my shell script?Sleep examples sleep 10, delays for 10 seconds.When ten seconds has come and gone, the test in the while block is run again.As a little background, Ive written a program I call an Email Agent that periodically scans my email inbox, and does a lot of things to the inbox, including deleting the over 6,000 spams that I receive in a typical day.