Hey Craig On Mon, 2022-11-14 at 19:25 +1100, Craig Small wrote: > I'm not sure why it is not matching, my test script above works fine. > That was with 3.3.17-5
I also just tried again, with 2:3.3.17-7.1, and oddly enough it worked again. $ ps ax | grep mux 19557 ? Ss 0:00 ssh: /home/calestyo/.ssh/mux/r...@lcg-lrz-admin.grid.lrz.de:22 [mux] $ pgrep --full --exact --euid "${LOGNAME}" --list-full -- "^ssh: ${HOME}/\.ssh/mux/.+ \[mux]$" 19557 ssh: /home/calestyo/.ssh/mux/r...@lcg-lrz-admin.grid.lrz.de:22 [mux] The difference seems to be: ... $ hd /proc/19557/cmdline 00000000 73 73 68 3a 20 2f 68 6f 6d 65 2f 63 61 6c 65 73 |ssh: /home/cales| 00000010 74 79 6f 2f 2e 73 73 68 2f 6d 75 78 2f 72 6f 6f |tyo/.ssh/mux/roo| 00000020 74 40 6c 63 67 2d 6c 72 7a 2d 61 64 6d 69 6e 2e |t@lcg-lrz-admin.| 00000030 67 72 69 64 2e 6c 72 7a 2e 64 65 3a 32 32 20 5b |grid.lrz.de:22 [| 00000040 6d 75 78 5d 00 |mux].| 00000045 That there's only exactly one trailing 0x0. > That's how the argument list is stored. libproc parses it out into a > set of strings or one long string. Okay... but shouldn't it still be able to match? Thanks, Chris.