Confused as to why this:
sudo ps aux | grep -E '\/erts-[1-9]\d*(\.\d+)+\/bin\/beam'
Does not return a match for the beam.smp
process of the form:
/opt/api_presence/erts-8.3/bin/beam.smp
All regex testers/validators confirm this returns the expected output given what was put in. At the very least you can test with /bin/beam
.
In the comments, user muru has identified my issue.
\d
needs GNU grep with-P
. The/
doesn't need to escaped. – muru Nov 11 '19 at 14:57