Chapter 9. Checking and Running Processes
When an executable program starts up, it runs as a process that is under the management of your system's process table. Every Mac OS X system provides all the tools you need to view and change the processes running on your system.
The ps and top commands are great for viewing information on your running processes. There are literally dozens of options to ps and top to help you view process information exactly the way you want.
There are commands such as nice and renice for raising and lowering processor priority for a process. You can move processes to run in the background (bg command) and move them back to the foreground (fg command).
Sending signals to a process is a way of changing its behavior or killing it altogether. Using the kill and killall commands, you can send signals to processes by PID or name, respectively. You can also send other signals to processes to do such things as reread configuration files or continue with a stopped process.
To run commands at scheduled times or to ensure that they are not tied to your shell session, you can use the at and batch commands. To run commands repetitively at set times, there ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access