This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 'ssh -1 -L < named_pipe' freezes
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 9 Apr 2013 13:35:38 -0400
- Subject: Re: 'ssh -1 -L < named_pipe' freezes
- References: <471284393 dot 20130409200429 at gmail dot com>
- Reply-to: cygwin at cygwin dot com
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