You may be familiar with suspending a process that is running in the foreground by pressing CTRL-Z. It will suspend the process, until you type "fg", and the process will resume again.
After pressing CTRL-Z, you'll see:# sleep 400
Then type "fg" to resume the process:[1] + Stopped (SIGTSTP) sleep 400
But what if you wish to suspend a process that is not attached to a terminal, and is running in the background? This is where the kill command is useful. Using signal 17, you can suspend a process, and using signal 19 you can resume a process.# fg sleep 400
This is how it works: First look up the process ID you wish to suspend:
Then suspend the process with signal 17:# sleep 400 & [1] 8913102 # ps -ef | grep sleep root 8913102 10092788 0 07:10:30 pts/1 0:00 sleep 400 root 14680240 10092788 0 07:10:34 pts/1 0:00 grep sleep
To resume it again, send signal 19:# kill -17 8913102 [1] + Stopped (SIGSTOP) sleep 400 &
# kill -19 8913102
If you found this useful, here's more on the same topic(s) in our blog:
- Creating a bootable AIX DVD
- Using colors in Korn Shell
- AIX fibre channel error - FCS_ERR6
- Export and import PuTTY sessions
- Paging space best practices
UNIX Health Check delivers software to scan Linux and AIX systems for potential issues. Run our software on your system, and receive a report in just a few minutes. UNIX Health Check is an automated check list. It will report on perfomance, capacity, stability and security issues. It will alert on configurations that can be improved per best practices, or items that should be improved per audit guidelines. A report will be generated in the format you wish, and the report includes the issues discovered and information on how to solve the issues as well.
Interested in learning more?
Interested in learning more?