automatically using "nice"
Thomas McIntyre
temac at yahoo.com
Tue Jul 1 20:45:57 PDT 2003
Simon Barner wrote:
> You could either modify your scripts to use nice, or start a new
> shell with an appropriate nice level. All the processes you launch
> from that shell will inherit the nice level of that shell:
A user can also be niced by login classes:
gccuser:*:1000:0:interactive:::gccuser:/home/gccusr:/bin/csh
with /etc/login.conf (less /etc/login.conf, man login.conf, man 5
passwd, /handbook/users-limiting.html):
interactive:\
:priority=20:\
:tc=default:
To renice interactively, you can su - gccuser, do so manually, or
spawn/exec the current login shell:
exec bash --login
with ~/.bash_login:
renice 20 $$
export PS1="[\u@\h:\j:\w]\$ "
But be sure not to nice background processes -- it might break the
warrantee....
Regards,
Tom McIntyre
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
More information about the freebsd-questions
mailing list