Pgrep -fx not matching anything
Hadrien Lacour
hadrien.lacour at openmailbox.org
Tue Jun 20 14:34:33 UTC 2017
Hello,
I'm having a bit of trouble using pgrep -fx; here's a simple example:
$ uname -a
Linux gentoo 4.9.33-gentoo #1 SMP Sun Jun 18 01:43:49 CEST 2017 x86_64 AMD
FX(tm)-8350 Eight-Core Processor AuthenticAMD GNU/Linux
$ busybox | head -n1
BusyBox v1.25.1 (2016-12-13 23:14:59 CET) multi-call binary.
$ pgrep --version
pgrep from procps-ng 3.3.12
$
$
$ sleep 1000 &
$ ps ax | grep sleep | head -n1
9602 pts/5 S 0:00 sleep 1000
$ pgrep -flx "sleep 1000"
9602 sleep
$ busybox pgrep -flx "sleep 1000"
$
Also tested on busybox 1.25.2 (on Alpine)
More information about the busybox
mailing list