Hi, I’m new to the unix world. I have a program that runs as a system process belonging to root user on log in (background app) it is a status program for my wirless signal. It has a bad memory leak and I can’t get the company to believe that there software has a problem. Any way how can I make a startup script to kill this program so I don’t have to do it every time I log in or restart my computer. I have been using a program named memory usage getter to kill it and reclaim the memory. It doesn’t show up in login items or I could stop it there.
First check in your /Library/StartupItems/ folder to see if the offending app is in there. If it is, then move it somewhere else to see if that resolves your issue. If not, you can try to kill the process by PID, “kill PID”, where PID is the process ID number. Here’s a script I wrote a while back to kill a process by name, you can adjust it to suit your needs…
[This script was automatically tagged for color coded syntax by Script to Markup Code]
You may need to adjust the line "do shell script “kill -15 " & pNum” to
do shell script "kill -15 " & pNum with administrator privileges