-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 03.02.2010 08:45, Bastian Bittorf wrote: > * Matthias Buecher / Germany <[email protected]> [02.02.2010 18:00]: >> Thanks Bastian, for your input. Much cleaner approach. >> >> What about the follwing (works fine on my router): >> >> grep -q -e "${PROG}" "/proc/${pid}/cmdline" && { >> append ignore "${pid}" >> break >> } >> >> Or is there a special need for "grep -F" (=fgrep)? > > i think it's faster and consumes lower mem - why to grep for regexp, > when we search a simple string? in practise it does'nt matter 8-)
Note, that it is a small "e" not a big "E", so not a regular expression. -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktph7sACgkQUXXT+9wZdbW1agCg7OfVGXTCGRFOKk43K/QnP7pl UI8AnjvTaXOh2oRZOanQ3D+zeY2SxTi/ =+90V -----END PGP SIGNATURE----- _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
