This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cat /dev/ttyS?


> 
> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]