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 common function in libproc
has a bug/limitation.

--
Mike


--- Tom Mortimer-Jones <[EMAIL PROTECTED]> wrote:

> I can replicate this.
> 
> It seems to be only seeing the first 15 characters
> of the script name.
> 
> pgrep myscriptwithalo
> [shows PID]
> 
> pgrep myscriptwithalon
> [shows nothing]
> 
> Is it using the output from ps -e? This seems to
> truncate the commands
> after 15 characters.
> 
> -- 
> pgrep cannot match some long filenames
> https://bugs.launchpad.net/bugs/113096
> You received this bug notification because you are a
> direct subscriber
> of the bug.
> 


       
____________________________________________________________________________________Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

-- 
pgrep cannot match some long filenames
https://bugs.launchpad.net/bugs/113096
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to