views:

166

answers:

3

Hello.
I would like to setup my Eve Online application to start with lowest priority every time I open it. Is it possible, and how?

I am using Mac OS X 10.6.2...

Thanks for any help!

+3  A: 

The nice command runs a program at a lower (or setable) priority. Put something such as

nice -n 20 eve_online

in your .bashrc. That isn't quite it since it will run each time you open a terminal window.

Brian Carlton
Thanks Brian... I have a small problem here because Eve Online is actually a Cider application and I'm not sure which executable file should I point to when I run 'nice'... Thanks for help!
errata
`~/.bash_profile` is executed only on "login" shells but "login" is pretty poorly defined. `if ps -C eve_online > /dev/null 2> then nice ...` but that's getting a little carried away.
msw
lol :) i almost don't understand this comment at all :)
errata
+1  A: 

As Brian points out, you can use the nice command, but this isn't really a user-friendly option.

Why do you want to do this?

As long as your application is reasonably well designed and not actively consuming large amounts of CPU/disk the whole time, contention with other apps should be a non-issue. There is absolutely no need to go messing with process priorities. This is even more the case these days where virtually all systems have at least two cores.

Unless you have a very, very good reason to modify your process priority then you should just leave it alone, the kernel knows what to do with your process better than you do.

Rob Keniger
+1  A: 

You can use nice to launch a process at a specific priority and renice to alter the priority of an existing process. One thing you can do is open the Activity Monitor to find the Process ID (PID) of the application whose priority you wish to adjust, then you can use the command renice with that PID, as in:

renice -n 20 -p pid

In the above, just replace pid with the process id as given by "ps aux" or Activity Monitor.

Michael Aaron Safyan