Date: Sun, 14 Dec 1997 09:48:31 -0600 (CST) From: "Matthew D. Fuller" <fullermd@futuresouth.com> To: Dan Nelson <dnelson@emsphone.com> Cc: questions@freebsd.org Subject: Re: nice question Message-ID: <Pine.BSF.3.96.971214094058.22292B-100000@shell.futuresouth.com> In-Reply-To: <19971213233126.62113@emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 13 Dec 1997, Dan Nelson wrote: > Another reason not to use csh :) Csh has a builtin 'nice' command with > different arguments than /usr/bin/nice. man csh and search for 'nice'. Hmm... I use tcsh; would that do it? Let's see.... {~} mortis:{58} %nice 20 top 20: Command not found. {~} mortis:{59} %which nice nice: shell built-in command. Ah ha. {~} mortis:{78} %whereis nice nice: /usr/bin/nice /usr/share/man/man1/nice.1.gz /usr/src/usr.bin/nice {~} mortis:{79} %/usr/bin/nice -20 top 320 fullermd 71 20 616K 800K RUN 0:00 0.00% 0.00% top Bingo And... {/home/fullermd} root@mortis: %/usr/bin/nice --20 top 321 root -9 -20 616K 800K RUN 0:00 0.00% 0.00% top Thanx. I realize this falls under 'idiot-proofing' (myself excepted ;), but shouldn't there be some sort of warning in man nice that some shells use it as a builtin. Or, for that matter, shouldn't {t}csh's built-in nice be able to set positive priorities somehow? Seems wierd that since root is generally sh, that {t}csh should only allow negative priorities. Or maybe it's just me. Just a thought... *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | FreeBSD; the way computers were meant to be | * "The only reason I'm burning my candle at both ends, is * | that I haven't figured out how to light the middle yet."| * fullermd@futuresouth.com :-} MAtthew Fuller * | http://keystone.westminster.edu/~fullermd | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.971214094058.22292B-100000>