delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=tUFQPDIbzv4ijJfntvHk7aUJyB1U2SOQTkGgzqZVeuehkhoepZQt6 | |
sfjZhSAPSmfXKlKl61YFI1vcU3GEpK9RgNNXp6lcyRq7iOFinBmv5FUBVzmye2e0 | |
aIghcqyXOHXU9370eobd7wwOLTOjVCJdMuGisQ/b6eKiIGHWAGZD0M= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=NZ5gdD2iNTW29idYfeB+9bXC4OI=; b=ls08/rz0P4kvAQum7GNjZyAqGovq | |
jNsCJTopC8v37+lu1HHI8gyI/yvHqoxd50ILbLfgDTXAsAjKGnp98hmVLbCgkBSd | |
VUXh7uQgaqmw2tP2LAzGtLKrNgd/9IhHzxjXSvM9BpNQP5y1ndsuOxgKUxDvTffT | |
OupEI9YheiYSk1g= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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-Spam-SWARE-Status: | No, score=-0.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,TW_MK autolearn=ham version=3.3.1 |
X-Mail-Handler: | Dyn Standard SMTP by Dyn |
X-Report-Abuse-To: | abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) |
X-MHO-User: | U2FsdGVkX18I5yk1faFrjQmVfI8VB/Rb |
Date: | Tue, 9 Apr 2013 13:35:38 -0400 |
From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: 'ssh -1 -L < named_pipe' freezes |
Message-ID: | <20130409173538.GB1014@ednor.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <471284393 DOT 20130409200429 AT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <471284393.20130409200429@gmail.com> |
User-Agent: | Mutt/1.5.20 (2009-06-14) |
On Tue, Apr 09, 2013 at 08:04:29PM +0400, Ilya Basin wrote: >Here's my script that works on linux: > > cmd="ssh -T -N -g -1 -L 10001:anotherhost:22" > fifo=`mktemp -u` > mkfifo "$fifo" > $cmd <"$fifo" & > exec 3>"$fifo" > # message: Pseudo-terminal will not be allocated because stdin is not a terminal. > # netstat shows that port 10001 is LISTENING > # from another terminal: ssh -p 10001 localhost > #printf '\0' >&3 # unfreeze on Cygwin > wait > >-N is ignored for protocol version 1, so as a workaround I redirect >input from an eternal pipe. >I want to save processes, so I'm using a named pipe instead of >something like: > sleep | ssh > >On Cygwin when I try to use the forwarded port, the new client freezes >until I write something to the pipe. > >This happens only with named pipes. Normal pipes work well. Named pipes are not completely functional in Cygwin. Sorry. cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |