Operating System - HP-UX
1851502 Members
3130 Online
104059 Solutions
New Discussion

Re: Default NICE value to particular user

 
Thomas Lee_1
Advisor

Default NICE value to particular user

Hi,

A have special user which use to running batch, currently we looking for if we can set it's NICE value to say 10 for every command it run once login?

Regards,
Thomas
1 REPLY 1
Dennis Handly
Acclaimed Contributor

Re: Default NICE value to particular user

I don't know of any direct way.

I suppose you could change that user's .profile to detect it is the login shell and then create a subshell with nice:
nice -10 ksh

That wouldn't work for cron or at jobs.

If you use at(1) or batch(1) you can put it in a queue and set a nice value. queuedefs(4)

Of course you can use renice to make it lower.