<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Oct 31, 2017 at 11:27 AM, Nick Morrott <span dir="ltr"><<a href="mailto:knowledgejunkie@gmail.com" target="_blank">knowledgejunkie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 31 October 2017 at 14:36, Jan Ceuleers <<a href="mailto:jan.ceuleers@gmail.com">jan.ceuleers@gmail.com</a>> wrote:<br>
> On 31/10/17 15:19, Nick Morrott wrote:<br>
>> On 31 October 2017 at 14:14, Ozzy Lash <<a href="mailto:ozzy.lash@gmail.com">ozzy.lash@gmail.com</a>> wrote:<br>
>><br>
>>> Isn't a negative nice value giving the process a HIGHER priority?  I think<br>
>>> you mean "nice 19"  correct?<br>
>><br>
>> Correct. A lower nice value gives the process a higher priority.<br>
>><br>
>> +ve (1 - 19): lower priority<br>
>> 0: default priority<br>
>> -ve (-1 - -20): high priority<br>
><br>
> Although this is true you need to experiment with your implementation of<br>
> "nice" as to how to feed it the desired niceness value.<br>
><br>
> Start by noting that nice without parameters returns the current<br>
> niceness value.<br>
><br>
> Then experiment with different syntactic options and values:<br>
><br>
> root@hobbiton:~# nice nice<br>
> 10<br>
> root@hobbiton:~# nice -19 nice<br>
> 19<br>
> root@hobbiton:~# nice --19 nice<br>
> -19<br>
> root@hobbiton:~# nice -n 19 nice<br>
> 19<br>
><br>
> So as you can see, if you feed it a niceness value it needs to be either<br>
> preceded by a dash or by "-n ". If you want to specify a negative value<br>
> then it needs two dashes (or "-n -").<br>
<br>
</div></div>My apologies. My blanket "correct" did not cover the second statement<br>
separately, so thanks for the extra clarification.<br>
<br>
>From the GNU docs:<br>
<br>
"For compatibility nice also supports an obsolete option syntax<br>
-adjustment. New scripts should use -n adjustment instead."<br>
<br>
Please use `nice -n adj` (especially for scripts and hints posted to<br>
the wiki and mailing lists) unless it's already burned into your<br>
muscle memory and you are beyond hope :)<br>
<br>
Cheers,<br>
Nick<br>
<div class="HOEnZb"><div class="h5">__</div></div></blockquote><div><br></div><div>Thanks to everyone for the suggestions. </div></div></div></div>