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

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



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 $$.

-- 
CaT


Reply to: