Re: automatically using "nice"
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="[EMAIL PROTECTED]:\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 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: automatically using "nice"
Hi, > is there a way to have the system automatically use nice on all > command-line apps during a session? i don't want to keep typing it over > and over every time i run a batch script or compilation. 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: $ nice -20 > compile compile compile, ... :-) HTH, Simon signature.asc Description: Digital signature
automatically using "nice"
is there a way to have the system automatically use nice on all command-line apps during a session? i don't want to keep typing it over and over every time i run a batch script or compilation. thanks! Octavian Hornoiu p.s. i'm not on the list so please cc me in the reply. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"