You can run a job on unix server with lowest priority using nice –19 option.
Suppose you wish to run some script which is going to take a longer time and the results are not required immediately, you can assign the lowest priority to the job using:
nice –19 script.sh
If you have logged in as root:
You can also assign the highetst priority to the job:
nice -- 19 script.sh
Note: Only the root user can run a job with highest priority.
(You can give the priority between –19 to 19, with –19 having highest priority and 19 having lowest priority.)
Post a Comment