Re: grep hang - grep xxxx *



blackdog wrote:

I use grep on command line. Thanks for all of explanation, I still
don't know how to resolve the problem.


either run grep with truss or run grep without truss and truss it as
soon as it hangs. Once you have the filedescriptor causing the hang run
pfiles on the pid of grep to find out which file is the offender.

E.g.
truss grep xxx *

or

grep xxx *
^Z
bg
pfiles -p `pgrep grep`
truss -p `pgrep grep`

HTH,
Tom
.