Question about nice

David J. Weller-Fahy dave-lists-freebsd-questions at weller-fahy.com
Tue Nov 16 22:56:08 PST 2004


* Svein Halvor Halvorsen <svein-freebsd-questions at 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 ]


More information about the freebsd-questions mailing list