S. Anthony Sequeira wrote:
> Since then I have always used the following when searching for a string
> in a ps listing, assuming that the search string is sys:
> 
> $ ps -eadf | grep [s]ys
> root      1604     1  0 12:08 ?        00:00:00 syslog-ng
> 
> here is one that doesn't work:
> 
> $ ps -eadf | grep sys
> root      1604     1  0 12:08 ?        00:00:00 syslog-ng
> sherwin  14316 14297  0 20:53 pts/1    00:00:00 grep --color=auto sys
> 
> HTH

I usually just use "ps -C syslog-ng", since I normally know the binary
that I'm searching for.  I think -C is a Linux extension; I don't think
it works everywhere.  But given that the bootscripts are *for* a Linux
system, I don't think there's much harm in using it.

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to