This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Shell script loop runs out of memory
- From: Andrey Repin <anrdaemon at freemail dot ru>
- To: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder at niaid dot nih dot gov>, cygwin at cygwin dot com
- Date: Mon, 11 Jun 2012 17:58:41 +0400
- Subject: Re: Shell script loop runs out of memory
- References: <loom.20120531T193933-322@post.gmane.org> <CANs8wdBYOBGsmp2iFSSOOd5FZ4qb3i3a-E2EM8LBbPKz=su5Pg@mail.gmail.com> <786EBDA1AC46254B813E200779E7AD36023A42C2@srv1163ex1.flightsafety.com> <loom.20120531T211830-607@post.gmane.org> <0105D5C1E0353146B1B222348B0411A20A770C827D@NIHMLBX02.nih.gov> <0105D5C1E0353146B1B222348B0411A20A770AB442@NIHMLBX02.nih.gov>
- Reply-to: Andrey Repin <cygwin at cygwin dot com>
Greetings, Buchbinder, Barry (NIH/NIAID) [E]!
> Just to complete this topic ...
> This gets rid of all the fork-execs in the inner loop except
> for sleep. Instead of comparing file contents, it uses
> the test builtin to compare time stamps.
I /never ever/ rely on timestamps, except for casual check of the file age.
If I want to know, if two files are equal, I always compare contents.
Always. Even on 4Gb+ files.
--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 11.06.2012, <17:57>
Sorry for my terrible english...
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple