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: Greg Wooledge
Subject: Re: ionice bash pid in bash_profile Fails
Date: Mon, 22 Nov 2010 11:58:25 -0500
User-agent: Mutt/1.4.2.3i

On Mon, Nov 22, 2010 at 07:41:48AM -0900, Roger wrote:
> On Mon, Nov 22, 2010 at 08:39:49AM -0500, Greg Wooledge wrote:
> >>   ionice -c 2 -n 0 -p `pidof bash`
> >If you want the PID of the current shell process, use $$ instead.
> 
> 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

Perhaps pidof fails to find the -bash process due to the leading dash?
Who knows?  Who cares?  Use $$ to get the PID of the shell.



reply via email to

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