delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/12/29/23:41:19

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 459B4385803E
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1609303232;
bh=d9ikj6TnR2Mm4ggH80Oizwb8VEUXiFnBUJf+XtIsdw8=;
h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=WAGJBuK1PuUA29nJ8Hzwhh3TSLIRDrIHczoDem5vrgN19mV2TUBnqr1eIjLcastUy
kbkjqO0k4JXzt5KKxhI6QPf5oXhHZdxCtJTn2oRXZYke22FmPzq30uAWYDvMTB+EfL
ihKiWckmRq3x+fwQrFxZvBlbX4CWw6UFBQ409L58=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9D920385800E
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com 0BU4dxMN010465
X-Nifty-SrcIP: [122.249.67.108]
Date: Wed, 30 Dec 2020 13:40:10 +0900
To: cygwin AT cygwin DOT com
Subject: Re: tee: 'standard output': Permission denied
Message-Id: <20201230134010.e3271a33bf0463085695e346@nifty.ne.jp>
In-Reply-To: <20201230130258.b2be068bdd45172de0cbb20c@nifty.ne.jp>
References: <20201230104504 DOT 26f3064d3c231c6669637b6d AT nifty DOT ne DOT jp>
<1798147396 DOT 20201230052402 AT inbox DOT ru>
<20201230130258 DOT b2be068bdd45172de0cbb20c AT nifty DOT ne DOT jp>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-4.4 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Takashi Yano via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Wed, 30 Dec 2020 13:02:58 +0900
Takashi Yano via Cygwin <cygwin AT cygwin DOT com> wrote:
> 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"

or:

@echo off
set CYGWIN_ROOT=...
set PWD=...
set PROJECT_LOG_FILE=...

cd "%PWD%"
"%CYGWIN_ROOT%\bin\script" -q -a "%PROJECT_LOG_FILE%" -c "chcp.com 65001 > /dev/null 2>&1; CHERE_INVOKING=1 /bin/bash --login"

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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