sleep – POFTUT

How To Sleep PowerShell with Start-Sleep Command-let Tutorial with Examples?

PowerShell is not just a shell where it can provide programmatic features. We can use Start-Sleep command-let in order to suspend the script or activity for specified period of time. Syntax Start-Sleep has very simple syntax where we will just provide the options which is used to specify seconds or milliseconds and the time we … Read more

What Is sleep() function and How To Use It In C Program?

C programming language provides sleep() function in order to wait for a current thread for a specified time. slepp() function will sleep given thread specified time for the current executable. Of course, the CPU and other processes will run without a problem. Include unistd.h Library In Linux sleep() function is provided by unistd.h library which is … Read more

How To Wait Specified Process Termination with wait In Linux and Difference with sleep?

Linux provides simple and useful tools and commands. wait is one of them. We can use wait command to wait for specified process id and than continue execution of the bash script or interactive shell. Wait For Specified Process ID While scripting in bash we may need to wait for some process to continue. So … Read more

Python Script Change Mac Address Periodically

In this tutorial we will look a simple but useful code that changes windows operating system Mac address. Mac address is the unique address that specifies the network interface. A general thought that mac addresses can be changed. But is it not true. Mac addressee is provided by the network card to the operations system … Read more

How To Pause and Resume Powershell and Cmd Scripts In Windows With Examples?

Powershell is as its name suggest powerful language. I have very good features and libraries. In this tutorial we will look how to pause Powershell in different ways and different behaviors. Pause And Wait Input We may want to pause the current shell and wait an input from the user. This is very useful if … Read more

How To Use Bash Sleep In Linux?

Sleep is a function provided by bash shell to pause execution of commands. Using sleep function will make delay according to provided time values. There is also library support for sleep function in Linux environments. Simple usage of sleep function is like below. Syntax Syntax of the sleep function is very easy. We will just … Read more