delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/12/04/16:39:59

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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=J1iZoSzkv4NOog/X
ll8Drwbyh+DXb+KaXithsQXkRqtJwt/+VI4j3+k/BbMOJdDcT35NTTN43sGD1B5f
EFjSB+20beYbVso+pphRC1Bxb0hG2I7V3CIWXgJK+zzCR4dAHQSo/W7o7jg2U9f4
qqCv0baeKmOF0SOzDPEsq1APgUI=
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:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=UBKter9dyhvX3tvkl6rw1x
eBc0U=; b=lp7kYb+EaC2EJ6qnIZ8kxs2SjNOByjGOnelgZT/eMNO0Srzy2+Judp
QmddyCDRVuVRkkYUKXi+QHuPqVwaIXToEKD4guBym3n0erpXJlYi+zhw1KOkY8bh
OyXcCtPxB1mF4F1hY2RPBM1c5QtHSztRnNkNODhjb2hiiguiUXSmE=
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=cyg, 04122018, Karr, marco
X-HELO: mail-it1-f174.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=pwG96aGB81Zjh6zE6PoZP5Ni8Fk+xffeklBDBTnZN1c=; b=NB+gYgRy+CYWyl9KSeisUKjOivDhWLvBr3rBJnX/iIPFSETwM1Wg/xX1TQtyN0TjVo Pe98eaHwd2+5V5itavtrHQ4VQWgpQvbdnDWLC+ANmzNxwpnqH+Aas7bvDM1aps9AAH+/ M7P8vytwLBpecT/JkBSiDjsYb2QiN6Ia4Hu77kLc9orkVKHmui5i/L3LJ70dUTbSfDzq Aqt9vCNRMDp29uQPV1z9J4Mne9UBsaP/810hhJv0DIa9ueDZxzlszjsaEckuuGeuMlaM /QQu3g1l973qEzDUf9li+59CIf36ae08lKaeXbc07FrB5p08UbUOVXyyjYrT1GCY6BR3 ZPdA==
Subject: Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux
To: cygwin AT cygwin DOT com
References: <CAA5t8VrSPx-LgmwCJCzTTHwA8wV6Lq5iMfjx06ApDQRPgx8ByA AT mail DOT gmail DOT com> <6cc83f4b-b0b1-d5c9-8d59-94c51382e4e3 AT gmail DOT com>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <41b4d6fa-615a-150b-cfb1-5b5d3ee3ce60@gmail.com>
Date: Tue, 4 Dec 2018 16:39:41 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2
MIME-Version: 1.0
In-Reply-To: <6cc83f4b-b0b1-d5c9-8d59-94c51382e4e3@gmail.com>
X-IsSubscribed: yes
Note-from-DJ: This may be spam

On 12/4/2018 3:52 PM, Marco Atzeri wrote:
> Am 04.12.2018 um 21:41 schrieb David Karr:
>> "CYGWIN_NT-6.1 WACDTL03DK068X 2.9.0(0.318/5/3)"
>>
>> I installed a version of "kubectl" for windows, and I use it 
>> extensively in
>> Cygwin bash for scripting command-line automation. In general, this works
>> perfectly fine. I even use the same scripting in a Linux VM.
>>
>> I'm seeing an issue with one script that works fine in the Linux VM, but
>> not in Cygwin.
>>
>> The command line is approximately this:
>>
>>       kubectl exec pod -c container -i -t -- grep "string" 
>> stuff.properties
>> 2>&1 | sed -e 's/^propname=//'
>>
>> In Linux, this works perfectly fine.  In Cygwin, it says "stdout is not a
>> tty".
>>
>> I haven't updated my local Cygwin installation for quite a while. I'd
>> prefer not to, unless there is a strong chance this kind of thing 
>> would be
>> fixed.
>>
> 
> as kubectl is not a Cygwin program, it is not aware of cygwin pty.
> You can try to use winpty to overcome the problem.
> 
> https://github.com/rprichard/winpty

Or grab the source and try to build a Cygwin version.  Looks like there 
are a number of dependencies though but primarily golang.

-- 
cyg Simple

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

- Raw text -


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