delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <ba40711f0603202048h459799f5qab2c819e356b2808@mail.gmail.com> |
Date: | Mon, 20 Mar 2006 23:48:48 -0500 |
From: | "Lev Bishop" <lev DOT bishop AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Redirect stdin & stdout to serial port |
In-Reply-To: | <441F6689.6070305@infodev.ca> |
MIME-Version: | 1.0 |
References: | <441F2482 DOT 2040502 AT infodev DOT ca> <Pine DOT GSO DOT 4 DOT 63 DOT 0603201943520 DOT 12896 AT access1 DOT cims DOT nyu DOT edu> <441F6689 DOT 6070305 AT infodev DOT ca> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id k2L4n0mf032054 |
On 3/20/06, D.Pageau wrote: > <> > > no permission denied but output is still stdout This is expected, because <> operator says to open for read/write on descriptor 0. It doesn't say anything about stdout. > </dev/ttyS0 >&0 > > no permission denied but output is not redirected to /dev/ttyS0, not > stdout either. This is also expected, since ttyS0 was opened for reading, so you can't write on it, even if you do attach it to stdout. I think the solution might be a combination of both of Igor's suggestions cmnd <> /dev/ttyS0 >&0 Ie, open the port read/write on stdin and then dup it to stdout. Let me know if that works. Lev -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |