bug-bash
[Top][All Lists]
Advanced

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

Re: ionice bash pid in bash_profile Fails


From: DennisW
Subject: Re: ionice bash pid in bash_profile Fails
Date: Wed, 08 Dec 2010 15:53:21 -0000
User-agent: G2/1.0

On Nov 21, 7:08 pm, Roger <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]