Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Nov 2004 07:55:53 +0100
From:      "David J. Weller-Fahy" <dave-lists-freebsd-questions@weller-fahy.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Question about nice
Message-ID:  <20041117065531.GA89733@weller-fahy.com>
In-Reply-To: <20041117014040.U82191@maren.thelosingend.net>
References:  <20041116144450.GA70461@weller-fahy.com> <20041117014040.U82191@maren.thelosingend.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* Svein Halvor Halvorsen <svein-freebsd-questions@theloosingend.net> [2004-11-17 01:52 +0100]:
> >  nice isoqlog
> >  isoqlog
> According to the man page nice(1)
>      The nice utility runs utility at an altered scheduling priority, by
>      incrementing its ``nice'' value by the specified increment, or a default
>      value of 10.  The lower the nice value of a process, the higher its
>      scheduling priority.
> If you don't specify the priority level, then mice adds 10.

Ok, thanks Svein.

> >  nice sudo isoqlog
> >  sudo nice isoqlog
>
> The former will run sudo nice, which in turn will make isoqlog run as
> root, with the priority level inherited. The latter will make sudo run
> nice as root, and in turn run isoqlog with priority 10, with the effective
> user inherited.
>
> The obvoius difference, is that you let sudo run nice without a password,
> you could do "sudo nice <anyprogram>" without a password.

Yep, that's why I was concerned about it.  If there's no reason not to
run the first syntax, then that's what I'll use.

Regards,
-- 
dave [ please don't CC me ]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041117065531.GA89733>