From owner-freebsd-questions Sat Dec 13 18:51:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id SAA25860 for questions-outgoing; Sat, 13 Dec 1997 18:51:37 -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 SAA25806 for ; Sat, 13 Dec 1997 18:51:30 -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 UAA16594 for ; Sat, 13 Dec 1997 20:51:22 -0600 (CST) Date: Sat, 13 Dec 1997 20:51:22 -0600 (CST) From: "Matthew D. Fuller" To: questions@freebsd.org Subject: nice question 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 this may be a bug in nice, a bug in the manpage, or a bug in my understanding here. her's my understanding: nice sets a priority between -20 and 20 (I'm assuming running as root). 20 is the lowest priority, 0 is the highest normal priority. According to the man page, to nice something to a positive number you do this: nice - command. to nice to a negative number, you do this: nice -- command Here's what I get: {~} root@mortis: %nice -20 top and I find this in the output: 21551 root 51 -20 640K 856K RUN 0:00 4.80% 0.46% top ^^^^ Note that this is at -20, not +20. Then, if I do this: {~} root@mortis: %nice --20 top nice: Badly formed number. So, I guess the question is, how do I nice something to +20? I can't nice below -20, so it's not like it's shifted to -40 - 0. HELP!! *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* | 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 | *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*