Tag Archives: Pause Process

09 Jan

Linux shell script: Pause a process with kill signals

Linux KILL command gives you killing opportunities to use SIGNALs. In this post we’re going to Pause and Start an ongoing Linux process.

Problem: The requirement here is to pause a process for certain time and run it only during off hours. The process itself doesn’t have this option and also we cannot stop it in-between, as it will start from the scratch again.

Solution: To resolve this we can think of sending out signals to the process to hint it to Pause or Progress.

A signal is an asynchronous notification sent to a process or to a specific thread within the same process in order to notify it of an event that occurred. When a signal is sent, the operating system interrupts the target process’ normal flow of execution to deliver the signal.

Read More

-- Kedar Vaijanapurkar --