Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

A quick question about how nice works.

Say if I have a script that runs in the crontab like so

0 4 * * * nice -n 19 /usr/local/admin/script.pl 

It is set to the lowest priority. This script will start other commands within it. Will these commands also be niced as well becuase the niced scrip started them or should all these commands have nice command added within the script?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Yes, that's correct. Every child process created by your script got the same prio as the parent.

share|improve this answer
    
Thanks for confirming. I was looking it the child processes and wasn't sure if this was the case. Thanks for you help –  dgibbs Jun 5 '13 at 12:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.