Date: Wed, 06 Aug 2025 15:56:59 -0400 From: Richard M Kreuter <kreuter@progn.net> To: freebsd@dreamchaser.org Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: getting renice to work from .xinitrc Message-ID: <5752.1754510219@ruk.vpn.home.arpa> In-Reply-To: <9b4c6b0f-689e-40c6-8519-94ae04da0b37@dreamchaser.org>
index | next in thread | previous in thread | raw e-mail
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'.
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5752.1754510219>
