From owner-freebsd-questions Sun Dec 14 07:48:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA14847 for questions-outgoing; Sun, 14 Dec 1997 07:48:43 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from shell.futuresouth.com (shell.futuresouth.com [207.141.254.20]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA14839 for ; Sun, 14 Dec 1997 07:48:39 -0800 (PST) (envelope-from fullermd@futuresouth.com) Received: from shell.futuresouth.com (mail.futuresouth.com [207.141.254.21]) by shell.futuresouth.com (8.8.8/8.8.8) with SMTP id JAA22498; Sun, 14 Dec 1997 09:48:31 -0600 (CST) Date: Sun, 14 Dec 1997 09:48:31 -0600 (CST) From: "Matthew D. Fuller" To: Dan Nelson cc: questions@freebsd.org Subject: Re: nice question In-Reply-To: <19971213233126.62113@emsphone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*