incorrect name display
Status: Inactive
Brought to you by:
djk
When I read the floating tags for the demons, they
don't have the last 7 characters of the name like it
says in the documentation. Instead they have 7 letters
picked somewhere from the middle. For instance,
instead of "s-xdoom", as it should show up, it shows up
as "/games/" It seems as though the tags are picked
from the full, directories included, name of the
program.
Logged In: YES
user_id=14219
The names are not picked from the full path of the program,
but from the full command line used to invoke it.
The problem arises because of the way psDooM collects
process information from the 'ps' command.
As is noted in the documentation, the command used by psDooM
on Linux to get the list of processes is: ps h a x u OT
Say you ran the command "/usr/local/bin/games/ps-sxdoom
-nopsact -psallusers"
The line from 'ps' would look like this when read by psDooM:
(column numbers included for explanation)
12345678901234567890123456789012345678901234567890123456789012345678901234567890123
david 598 0.0 1.2 844 472 2 R 22:14 0:00
/usr/local/bin/games/
'ps' truncates the output at column 80, so the process name
(to psDooM) would be "/games/"; the last 7 characters of the
11th field.
Solution:
Need to read the Linux 'ps' man page more carefully to coax
a more friendly, parsable output from it.