Re: grep hang - grep xxxx *




Doug Freyburger wrote:
blackdog wrote:

I use grep, it work just fine on all of my systems sun Solaris, but on
one particully system it alwyas hang. The system I built as other
system, there is no different from other systems I have.
It seems that the grep command grep the first file then hang. It could
not grep the string for
next file. The command I use as below:

grep xxx *

grep all of file in the same directory.

What directory are you in and what types of files are there?

They all are plan text files, and it is not in /dev directory.
Just regular directory data files. And the files is not large ether.
I can grep easily on other system in the same directory.

If you're in /dev there are plenty of files that will take a very
long time before they run out of data like the device file of a
large filesystem, and others like tty* that will wait until
someone hooks up a terminal and types ^D.
Would you please elaborate a littile more about tty* vs. grep hang and
^D

If you're in /var/spool/lp you might have a FIFO file that
might never have an end up file.

If you're NFS mounted maybe the server went down.
Many other possibilities that can't be guessed without context.

.



Relevant Pages

  • Re: grep hang - grep xxxx *
    ... one particully system it alwyas hang. ... It seems that the grep command grep the first file then hang. ...
    (comp.unix.admin)
  • grep hang - grep xxxx *
    ... one particully system it alwyas hang. ... The system I built as other ... It seems that the grep command grep the first file then hang. ...
    (comp.unix.admin)
  • Re: grep hang - grep xxxx *
    ... one particully system it alwyas hang. ... The system I built as other ... It seems that the grep command grep the first file then hang. ...
    (comp.unix.admin)