X-Spam-Check-By: sourceware.org Message-ID: <20060314222840.4377.qmail@web35003.mail.mud.yahoo.com> Date: Tue, 14 Mar 2006 14:28:40 -0800 (PST) From: bob knob Subject: bash, find | xargs grep To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi: (tried posting this to the comp.windows.cygwin usenet group and got no response, so....) I've been doing "find | xargs grep" types of things for a long time with no problem, but I just started working at a new job with a new computer onto which I've downloaded the latest Cygwin. I like grep & egrep & fgrep and so on just fine, but I have some #!/bin/bash scripts of my own that add some enhancements. So I use them in place of "grep". I've done this in the past with no trouble, but on the new box, I get the mess of errors listed at the end of this post. I am actually getting some output from my scripts as well, but I think xargs is starting multiple processes and several of them are failing while others do not. In some cases, the scripts do nothing more than fill in some default parameters for grep - the code is really innocent stuff. Any ideas why this started happening to me? 5 [main] bash 4800 C:\Programs\Cygwin\bin\bash.exe: *** fatal error - fork: can't reserve memory for stack 0x23E890 - 0 x240000, Win32 error 487 2520 [main] bash 4880 child_copy: stack write copy failed, 0x23E890..0x240000, done 0, windows pid 2353092, Win32 error 5 /c/MyCode/mygrep: fork: No error 5 [main] bash 4900 C:\Programs\Cygwin\bin\bash.exe: *** fatal error - fork: can't reserve memory for stack 0x23E890 - 0 x240000, Win32 error 487 655 [main] bash 4840 child_copy: stack write copy failed, 0x23E890..0x240000, done 0, windows pid 2353092, Win32 error 5 /c/MyCode/mygrep: fork: No error __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/