X-Spam-Check-By: sourceware.org Message-ID: Date: Fri, 6 Jan 2006 12:33:42 +0800 From: steven woody To: Eric Blake Subject: Re: cat /dev/ttyS? Cc: cygwin AT cygwin DOT com In-Reply-To: <010620060402.4634.43BDEBDB000607880000121A22007507840A050E040D0C079D0A@comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <010620060402 DOT 4634 DOT 43BDEBDB000607880000121A22007507840A050E040D0C079D0A AT comcast DOT net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k064XmM6010148 On 1/6/06, Eric Blake wrote: > > > > > 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. thanks. dd works! -- woody -- 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/