delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/20/21:36:17

X-Spam-Check-By: sourceware.org
Message-ID: <441F6689.6070305@infodev.ca>
Date: Mon, 20 Mar 2006 21:35:53 -0500
From: "D.Pageau" <dpageau AT infodev DOT ca>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Redirect stdin & stdout to serial port
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>
In-Reply-To: <Pine.GSO.4.63.0603201943520.12896@access1.cims.nyu.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

On 2006-03-20 20:02, Igor Peshansky wrote:

>> any work around ?
> 
> Well, bash does offer an input/output redirection with the '<>'
> operator...  Did you try that?
> 
> Also, duplicating the file descriptor might work (e.g., </dev/ttyS0 >&0).

<>

no permission denied but output is still stdout

</dev/ttyS0 >&0

no permission denied but output is not redirected to /dev/ttyS0, not
stdout either.

nice try.

Thanks Igor.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019