X-Spam-Check-By: sourceware.org From: ericblake AT comcast DOT net (Eric Blake) To: steven woody , cygwin AT cygwin DOT com Subject: Re: cat /dev/ttyS? Date: Fri, 06 Jan 2006 04:02:35 +0000 Message-Id: <010620060402.4634.43BDEBDB000607880000121A22007507840A050E040D0C079D0A@comcast.net> 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 > > oh, i found the 'cat /dev/ttyS1' really outputs, but it has a very > *big* delay that leads me thought it does not response. is the > output buffered? what do i do? thanks! Yes, cat with no options calls read(), which typically uses buffers. Try cat -u to get unbuffered output. Or there are other programs, such as dd, which are better suited with options to tweak to get unbuffered output. -- Eric Blake volunteer cygwin coreutils maintainer -- 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/