On Sun, Nov 21, 2010 at 04:08:33PM -0900, Roger wrote:
> When logging in, the following fails if put in $HOME/.bash_profile:
> 
>   ionice -c 2 -n 0 -p `pidof bash`
> 
> ... I'm guessing, because bash hasn't started yet?
I very much doubt you want to use `pidof bash` here.  That would pick
up EVERY bash process running on the system, including other people's,
and possibly a few wrapper scripts running as root.

If you want the PID of the current shell process, use $$ instead.

Reply via email to