From owner-freebsd-questions@FreeBSD.ORG Tue Nov 16 14:45:15 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBDEF16A4CE for ; Tue, 16 Nov 2004 14:45:15 +0000 (GMT) Received: from weller-fahy.com (pD9FFF4B8.dip.t-dialin.net [217.255.244.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88C9143D1F for ; Tue, 16 Nov 2004 14:45:14 +0000 (GMT) (envelope-from dave-lists-freebsd-questions@weller-fahy.com) Received: (qmail 76036 invoked by uid 1001); 16 Nov 2004 14:45:12 -0000 Date: Tue, 16 Nov 2004 15:45:12 +0101 From: "David J. Weller-Fahy" To: freebsd-questions@freebsd.org Message-ID: <20041116144450.GA70461@weller-fahy.com> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-URL-Me: http://www.weller-fahy.com X-URL-Family: http://www.weller-kin.com X-Accept-Language: en X-Location: Germany, Gangelt, Hof Grootfeld User-Agent: Mutt/1.5.6i Subject: Question about nice X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Nov 2004 14:45:15 -0000 I've set a very few commands as NOPASSWD in sudo, and run them from my normal user's crontab. I've seen some examples of crontab's that use nice, but none that use sudo and nice. That led me to a few questions. All paths have been stripped stripped - sudo and isoqlog are in /usr/local/bin, nice is in /usr/bin. 1. I understand nice is useful if you need to run a program at a certain priority. Is nice useful when not passing a priority? If so, what is the difference between the following two commands (in terms of priority level)? nice isoqlog isoqlog 2. If it is useful to run nice without passing a priority, then are the following two commands equivalent? If not, which one would be preferred and why? nice sudo isoqlog sudo nice isoqlog I've been reading a bit, but haven't found a definite answer yet. My feeling is that the answer to number one (first portion) is no, and thus the answer to number 2 (first portion) is no. I'd be happy to be proven wrong, though. ;] Regards, -- dave [ please don't CC me ]