[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ionice bash pid in bash_profile Fails
From: |
Greg Wooledge |
Subject: |
Re: ionice bash pid in bash_profile Fails |
Date: |
Mon, 22 Nov 2010 08:39:49 -0500 |
User-agent: |
Mutt/1.4.2.3i |
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.