[Top][All Lists]

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

Re: ionice bash pid in bash_profile Fails

From: Roger
Subject: Re: ionice bash pid in bash_profile Fails
Date: Mon, 22 Nov 2010 07:41:48 -0900
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Nov 22, 2010 at 08:39:49AM -0500, Greg Wooledge wrote:
>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.

Yes I do.  It's only me on this computer, unless you're speculating on
prioritizing a snooper. :-O

Here's the error I get when logging into a virtual terminal and
$HOME/.bash_profile executes or is read in:

ionice: ioprio_set failed: No such process


reply via email to

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