You too noticed ps -e truncates process names.
At first, I suspected pgrep was a script over ps -e
but pgrep is a C executable.
ps and pgrep are both linked to libproc.so:
objdump -x /bin/ps | grep libproc
objdump -x /usr/bin/pgrep | grep libproc
NEEDED libproc-3.2.7.so
Probably/maybe a
You too noticed ps -e truncates process names.
At first, I suspected pgrep was a script over ps -e
but pgrep is a C executable.
ps and pgrep are both linked to libproc.so:
objdump -x /bin/ps | grep libproc
objdump -x /usr/bin/pgrep | grep libproc
NEEDED libproc-3.2.7.so
Probably/maybe a
Public bug reported:
Binary package hint: procps
pgrep has a bug in trying to match:
- a script with a long filename
- and its filename ends in a number
Example:
name this myscriptwithalongfilename2
#!/bin/sh
sleep 10
chmod u+x myscriptwithalongfilename2
./myscriptwithalongfilename2