Hello,

what are ways to run some command from linux bash script with lower priority so it is lighter on server while it run?



I found this to be apparently working in bash script:

/bin/nice -n 19 command_to_run
that gives "command_to_run" lowest process priority

if i want to increase process priority 1 point above normal, i can do "-n -1" instead of "-n 19" (negative numbers = higher priority, positive numbers = lower priority)