nice and pipe commands 

Newsgroups:  comp.unix.shell
Date:        Fri, 17 Jun 2005 20:26:13 -0400
> I'm wondering, if I have a process with long list of commands piping from
> one to another, how can I 'nice' the whole piping process?
>
> I presume that
>
> nice p1 | p2 | p3 | ...
>
> will only nice on p1, right?

Right. You can either nice each command:

nice p1 | nice p2 | nice p3 | ...

or you can run an extra shell:

nice sh -c "p1 | p2 | p3 | ..."

Barry Margolin