On Wed, Jun 20, 2012 at 07:33:46PM +0100, Srdjan Todorovic wrote:
On 20 June 2012 19:26, Ted Harding Ted.Harding@wlandres.net wrote:
On 20-Jun-2012 16:36:43 Chris Green wrote:
www-data$ grep xxx *.txt www-data$ grep fred *.txt www-data$ grep 'CLEARFLOAT'_*.txt
... and there it sits, still (like 5 minutes later). The two .txt files are only a few tens of bytes long. It's not using any processor time, it's just stuck.
You're not giving it anything to grep in! If you give a grep command in the form
However, you are only giving it
grep <regexp>
and now it is waiting for lines to arrive via stdin, so it is
Ted, If you look at the original email, there are spaces after the search term and the input filenames. I cannot see anything wrong with what Chris is doing.
Ah, good, I'm not going completely crazy then! :-)
Chris, You could try strace to see if there's some weirdness going on, but I suspect it won't really be of any help. Could you try it in a different shell? (ie. zsh, tcsh, etc...) Also maybe try in different terminal emulator, like xterm, rxvt etc.
Sorry, don't really know what else to suggest.
I've tried in an xterm and I have even tried on a remote system running a different Linux distribution - same thing happens. I get the feeling that it's something to do with the string CLEARFLOAT.