man setpriority
You'll want PRIO_PROCESS (which is 0) for the first argument,
0 (which means the current whatever, whatever being
the current process, group, or user) for the second, then
the priority for the third.
I suspect there must be some good way of getting at these
constants, but I'm not quite sure how. | [reply] [d/l] |
Actually I did ... I feel quite foolish. This I confirm'd to have worked:
perl -e 'setpriority PRIO_PROCESS, 20498, 10'; where 20498 was the pid of my bash.
| [reply] |