Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: prenice(1) problem? Or pilot error?
On Mon, 18 Apr 2016 08:15:58 +0800 (PHT) Paul Goyette
<paul%whooppee.com@localhost> wrote:
> But when I try to prenice(1) those processes, I get no results:
>
> # prenice -l 20 -g 20012
> #
>
> Shouldn't I expect prenice(1) to show me which processes are being
> affected? And shouldn't that list match the list from pgrep(1)
> (modulo any processes which may have been newly created or exited)?
Well, the usual rule is to be silent on success, so I wouldn't
expect any output from prenice(1) if it did what you asked, any more
than pkill(1) outputs the names of the processes it killed. What's the
exit code?
That said, the manpage is a little confusing, since it tries to
describe the behaviour of pgrep(1) (which must of course give output)
alongside prenice(1) and pkill(1)(which shouldn't, unless something
goes wrong).
-- IDL
Home |
Main Index |
Thread Index |
Old Index