Re: ionice bash pid in bash_profile Fails

2010-11-22 Thread Roger
On Mon, Nov 22, 2010 at 04:58:46PM -0500, Greg Wooledge wrote: >On Mon, Nov 22, 2010 at 12:44:54PM -0900, Roger wrote: >> ionice -c 2 -n 0 -p `echo $$` > >You don't need echo or `` here. > >ionice -c 2 -n 0 -p $$ Just so used to using quotes in bash, just assumed. Thanks. -- Roger http://rogerx

Re: ionice bash pid in bash_profile Fails

2010-11-22 Thread Bob Proulx
Roger wrote: > # See ionice manfile - give high priority to Bash > ionice -c 2 -n 0 -p `echo $$` You don't need to use backticks to echo out the value of $$. Just use it directly. ionice -c 2 -n 0 -p $$ Bob

Re: ionice bash pid in bash_profile Fails

2010-11-22 Thread Chris F.A. Johnson
On Mon, 22 Nov 2010, Roger wrote: 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 p

Re: ionice bash pid in bash_profile Fails

2010-11-22 Thread Greg Wooledge
On Mon, Nov 22, 2010 at 12:44:54PM -0900, Roger wrote: > ionice -c 2 -n 0 -p `echo $$` You don't need echo or `` here. ionice -c 2 -n 0 -p $$

Re: ionice bash pid in bash_profile Fails

2010-11-22 Thread Roger
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. >>

Re: ionice bash pid in bash_profile Fails

2010-11-22 Thread Greg Wooledge
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 >

Re: ionice bash pid in bash_profile Fails

2010-11-22 Thread Jan Schampera
Roger wrote: 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 This is (in this context) not related to the number pf "bash" processes running. Not at all. -- Be conservative

Re: ionice bash pid in bash_profile Fails

2010-11-22 Thread Roger
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

Re: ionice bash pid in bash_profile Fails

2010-11-22 Thread Greg Wooledge
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 EVER