[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to use ``nice'' on a pipe?



On 3/9/08, CaT <cat@zip.com.au> wrote:
> On Sun, Mar 09, 2008 at 08:35:28PM +0800, Wei Chen wrote:
> > if [[ $1 != "run-script-nicely" ]]
> > then
> > nice -n19 $BASEDIR/$(basename $0) run-script-nicely
> > exit 0
> > fi
> > echo 'original script here...'
> >
> > But later I found it too strange for me, so I changed to what you have
>
> :)
>
> > mentioned... Thank you :)
>
> A better way to do the above, if you must, would be to use renice on $$.
>

Yes. That is indeed a better implementation. Thanks.

--
Cheers,
Wei
http://www.acplex.com/people/wchen/


Reply to: