1

How to watch pgrep?

view story
linux-howto

http://unix.stackexchange.com – When running a pgrep command with watch it does not only show the actual pgrep output, but also the watch process as well. Example: watch pgrep -lf thiscommanddoesnotexist12345678 will show 3 processes, although pgrep -lf thiscommanddoesnotexist12345678 does not show one. Is thee an elegant way to handle this properly with watch to not display the own process of watch? (HowTos)