Re: getting renice to work from .xinitrc
- Reply: Gary Aitken : "Re: getting renice to work from .xinitrc"
- In reply to: Gary Aitken : "getting renice to work from .xinitrc"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 Aug 2025 19:56:59 UTC
Gary Aitken writes:
> I'm trying to get certain xterms reniced when X starts up,
> but they don't seem to be working...
By default, ps truncates the command's args list to a width given by
$COLUMNS or the tty driver.
Could you try invoking ps as 'ps -awwo pid,args' at the relevant spot in
your .xinitrc? (That's two double-yews there. One would suffice for the
commands you showed, but two would be best in general. See 'man ps'.)
Regards,
Richard
PS: I don't think you need bash for the pipelines you showed, or to
invoke the piplines using -c, or the second grep, or even the first
grep. For the commands you showed, I believe this line ought to do:
sleep 30 && sudo renice -n -10 `ps -awwo pid,args | awk '/trm-1$/{print $1}'`
But this is orthogonal to the question you asked, so please ignore this
postscript if there are reasons for the original pipeline and 'bash -c'.