Run binary with highest priority Run binary with highest priority unix unix

Run binary with highest priority


you can create alias for it

alias binary='nice -n -20 binary'

after that if you execute binary then it will start with higher priority


Create a script that contains your nice command, and run that instead.

e.g.

echo  nice -n -20 binary > binary2chmod +x binary2

And then to run it, just do this:

./binary2


I believe you want something like this,

sudo nice -n -20 ./binary

From info coreutils 'nice invocation'

Only a privileged user may run a process with lower niceness: