Hello. Please forget and forgive my previous post. It suddenly occurred
to me that the problem is with the pattern, not with grep. I hate to
display my ignorance in public like this. The pattern should be X.*vnc
to get the desired results. Sorry for the mistake.
David White wrote:
Hello. Let me say in advance that I am no expert in these matters.
Busy Box is installed on my Android phone and provides grep and pgrep on
my device. And I note what seems to be an issue. If you look at the
terminal output in the attached screen shot it appears the both pgrep
and ps | grep are matching patterns incorrectly. The pattern is X*vnc
and while this should indeed match the first process shown, I don't
understand why it is matching the other two (which lack an X or even an
x in their names).
So maybe this is a problem in BusyBox?
Thanks very much,
David
Seattle, WA USA
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox