[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Problem with wc
From: |
Pat Robinson |
Subject: |
RE: Problem with wc |
Date: |
Thu, 14 Jun 2007 13:11:19 -0600 |
Bob,
The other forms work ok. I do have strace and tried the command but it
works everytime running it through strace.
Pat
-----Original Message-----
From: Bob Proulx [mailto:address@hidden
Sent: Thursday, June 14, 2007 10:07 AM
To: Pat Robinson
Cc: address@hidden
Subject: Re: Problem with wc
Pat Robinson wrote:
> cat foo | wc -l
> works the first time but will hang on subsequent attempts (foo is a
> ordinary text file).
> cat foo | more
> works fine time after time
That is really strange. I can't imagine what the problem would be in
that case. It is almost like no EOF is being recieved when piping.
> I'm running 6.9 coreutils on Windows XP x64
Try this test:
wc -l < foo
Does that hang? Try this test. Does this hang?
cat foo | cat | more
I would really like to see the result of 'strace' on wc.
strace wc -l < foo
But I don't think strace is available on your system. If it were that
would trace the system calls made by the program and we would be able
to (hopefully) see what it is doing. Obviously wc is not hanging for
others using the program so this must be something specific to your
system or to the binary compilation that you are using. I am sorry
but I don't have any further suggestions.
Bob
------------------------------------------------------------
The information contained in this transmission may be
confidential. Any disclosure, copying, or further
distribution of confidential information is not permitted
unless such privilege is explicitly granted in writing by
Quantum Corporation. Furthermore, Quantum Corporation is not
responsible for the proper and complete transmission of the
substance of this communication or for any delay in its
receipt.
------------------------------------------------------------