Today I decided that I had to do something to help me take resources back on my Mac. If you are like me and you have multiple familly members using your computer you might often find thing getting a bit slow… The usual cause are browsers applications open by other users that take all the available CPU because they have left some Adobe Flash games running when they left the computer. Adobe flash is a resource hog and will bring a good CPU to it’s knees.
What I used to do was to login as each users and log them out… which take a lot of time. I wanted something quick… so I came up with a small application called “Terminate All”.
This application name say it all… it will terminate all other logged in users. Now watch out because it will do so in a radical manner. Any unsaved work by those users will be lost!
The application look like this with a single button that is fairly self explainatory:
If you would like to get rid of all those pesky users simply download the application. How does it work? It essentially is using a series of grep and kill command lines to terminate login process of all non root/yourself processes. If you are interested I can provide the xcode project files for your reference.