On Nov 21, 7:08 pm, Roger <rogerx....@gmail.com> 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?
>
> --
> Rogerhttp://rogerx.freeshell.org/
It would be helpful if you had said how it fails (particularly whether
you had tried to get it to log any error messages).
I would suggest trying
ionice -c 2 -n 0 -p $$
pidof may give you PIDs that you can't affect. Also, you might get
better luck using
pidof -- -bash
(do ps auxww|grep bash to see why) but, again, that's going to return
PIDs belonging to other users, etc.
[Prev in Thread]
Current Thread
[Next in Thread]
Re: ionice bash pid in bash_profile Fails,
DennisW<=