On Mon, Nov 22, 2010 at 11:58:25AM -0500, Greg Wooledge wrote: >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.
The following works like a charm: # See ionice manfile - give high priority to Bash ionice -c 2 -n 0 -p `echo $$` Thanks! -- Roger http://rogerx.freeshell.org/