X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org X-MDAV-Processed: hima.com, Wed, 12 Sep 2012 08:18:03 +0200 X-Spam-Processed: hima.com, Wed, 12 Sep 2012 08:18:02 +0200 (not processed: message from trusted or authenticated source) X-MDRemoteIP: 192.168.100.10 X-Return-Path: s DOT severus AT hima DOT com X-Envelope-From: s DOT severus AT hima DOT com X-MDaemon-Deliver-To: cygwin AT cygwin DOT com Message-ID: <5050290D.6010601@hima.com> Date: Wed, 12 Sep 2012 08:17:49 +0200 From: Sven Severus User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: RE: Buffering problem in netcat server script Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Adam Dinwoodie wrote: > From `mad sed`: > > -u, --unbuffered > > load minimal amounts of data from the input files and flush the output > buffers more often > > If you add the -u option, sed will buffer less and write to the pipe more > often. I would guess this isn't the default as it's less efficient, but > haven't done anything to verify that. > > I believe `cat` never buffers, but I base this on nothing but instinct. > > A quick experiment on my handy RHEL box implies this is not Cygwin specific; > the following command shows buffering behaviour too: > > tail -f tmpfile | sed 's/e/E/g' | tee outfile > > (I'm using the pipelines so I can see what's going on without sed thinking > stdin or stdout are a terminal.) Thanks a lot for your reply. Sven -- Mit freundlichen Grüßen Dipl. Inform. Sven Severus Softwareentwicklung ---------------------------------------------------------- HIMA Paul Hildebrandt GmbH + CO KG Abt: Entwicklung Software Albert-Bassermann-Strasse 28 68782 Bruehl Germany Tel: +49 6202 709-289 Fax: +49 6202 709-299 E-Mail: s DOT severus AT hima DOT com Internet: www.hima.de -- HIMA Paul Hildebrandt GmbH + Co KG, Albert-Bassermann-Str. 28, 68782 Bruehl bei Mannheim Kommanditgesellschaft, Sitz Bruehl, Deutschland - Registergericht Mannheim HRA 421017 Ust-ID: DE 144286400, St.Nr: 43038 00190 Persoenlich haftende Gesellschafterin Paul Hildebrandt Verwaltungsgesellschaft mbH, Sitz Bruehl, Deutschland - Registergericht Mannheim HRB 420588 Geschaeftsfuehrer: Dipl.-Betriebswirt Steffen Philipp -- 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