For music making, I am writing a bash script (well, list of pkills or my own updated version) in OS X to remove unnecessary CPU-using programs. Even if I am forced to reboot afterwards, I do not mind. I need CPU use (and memory use, perhaps more importantly) at a bare minimum.
I have tried killall Finder
which seems to just restart the finder. I know that Path Finder actually kills the Finder so that it doesn't restart, but I don't know how they do that. My questions are:
- How can I kill the Finder and Spotlight so that they do not restart?
- Once this works, to reboot I can always hardboot. If not, what is my lowest CPU-usage way to initiate a reboot process correctly? Leave a Terminal window open?
Note: Although this is kind of implicit in the question: I do NOT want any changes to be persistent after rebooting.
Update: I might use sudo mdutil -i off /
to shut off Spotlight indexing. Is this a good idea?