From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by sourceware.org (Postfix) with ESMTPS id 4FF6D3858C27 for ; Wed, 30 Dec 2020 05:04:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4FF6D3858C27 Received: from Express5800-S70 (x067108.dynamic.ppp.asahi-net.or.jp [122.249.67.108]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 0BU53lmV030464; Wed, 30 Dec 2020 14:03:47 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 0BU53lmV030464 X-Nifty-SrcIP: [122.249.67.108] Date: Wed, 30 Dec 2020 14:03:58 +0900 From: Takashi Yano To: cygwin@cygwin.com Cc: Andry Subject: Re: tee: 'standard output': Permission denied Message-Id: <20201230140358.836dbced31c365033ac1f130@nifty.ne.jp> In-Reply-To: <571565681.20201230074907@inbox.ru> References: <20201230130258.b2be068bdd45172de0cbb20c@nifty.ne.jp> <571565681.20201230074907@inbox.ru> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2020 05:04:22 -0000 On Wed, 30 Dec 2020 07:49:07 +0300 Andry wrote: > Hello Cygwin, > > >I am not sure why you don't wat to use script, > >how about this then? > > > >@echo off > >set CYGWIN_ROOT=... > >set PWD=... > >set PROJECT_LOG_FILE=... > > > >"%CYGWIN_ROOT%\bin\script" -q -a "%PROJECT_LOG_FILE%" -c "chcp.com 65001 > /dev/null 2>&1; cd \"%PWD%\"; CHERE_INVOKING=1 /bin/bash --login" > > 1. chcp.com has no effect here Weird. In my environment, chcp surely changes the code page. Are you using cygwin 3.2.0 snapshot by any chance? If so, add set CYGWIN=disable_pcon before starting script. > 2. log is written after the `script` exit Add -f option to script command. -- Takashi Yano