delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/11/08/08:27:22

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D61093858435
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1667913991;
bh=3t+4+galGfU37ZvVVdXtk+pfdJCn3I/tMxjhZJMRQpE=;
h=To:CC:Subject:Date:References:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=OoqRSFjkWhycbmPnOUvhlgXYYPeYbnEDyvRWyMaHh7lTWuHicAsPmTTGwlfjafWE9
OiKePlvUvFZ9c42a0y6qM6XwTqJzvBjpI7zbBWZ51xzQVwV1KcIqoitxXggmyfEeeK
G+J7dspOasXgy084Z6wNU4cDwW0c18RhY/kxMbPs=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 936A3385840A
IronPort-Data: A9a23:veYnLagAwk0175bGKLNbugCcX161fxEKZh0ujC45NGQN5FlHY01je
htvX2yBOf6KYTb1KY0jatvi8R4P7cPXm9JrTQQ4pH80HisW8JqUDtmndUqhZCn6wu8v7q5Ex
55HNoSfdpBcolv0/ErF3m3J9CEkvU2ubuSkULas1gdZGlM/F0/NsTo6x6hjxNYAbeGRW2ulo
cn1r9DUJGir0jt1NnN8w6+YoVZkse+aVAkw5zTSXtgW+g6A/5UpJMhHf/vodiOoGtA88tOSH
I4v8pnopws1wD99UrtJop6jGmUWT7jbOxS5i3Y+c8BOVTAb+0Teeo5iXBYtQR8/Zwehxrid+
/0U3XCEcjrFC4WX8Agrv7u0JAklVUFO0OevzXFSKqV/xWWeG5fn660G4E3boeT0Uwu4aI1D3
aVwFdwDUvyMr/Dm/pS7YOxrvOU+De/bBb8goX1N3wiMWJ7KQbibK0nLzflx+W5ow+poQrPZb
cdfbidzZhPdZREJI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9901; d=microsoft.com; cv=none;
b=TA2taXjDrRAFYH7BetBtcG5gX82PNMZccMe8uv89qyPpQIBSHjRAOd5GK0dBE825I1nhCKOQpHt9tdGKZ8aKCQKSQ3rNhNlUAdCN+81r3Ycj24X5fPhxPsnTP8NEqh9Xtjgh4lOTxe3H7QR4LR6/gkox2dIYdeq/EN0hvVuEAMVJeVL/ec62ScMCSIadDQNJNFis/dmVRqG130WxLc/nM0btIM48zgKM9WGBq/CKPYLZYq0yJrjaQOn1z7Mb9jegj4iQPic1HdpC4hSGFDE1xeHD8UTHaFg45MPdm9eXsHietI44B92Z1ct4rUqyvnc079EBPizwIyYWoAo91X6VNA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=g65wFZ6g4NMxijyu8jcCE5Tkrc+wAa/5q6OEQEs4Vb8=;
b=dIqRqNHcYu99A7sFie58SI9N4ncd6SzIzdH6qcEwPwdF4G4oCiNaZeg5y+9BBucJpEaM87LORsw0y5S7FoIYvT+GUn32rJEVP/HovQC/HgNZKBpKVDtz+tq3s/9RmBkk9Cx+ZsnvGAI6TfKf4+yhWXzktIhmj9I1XqKC+tr3YaJSa8elrtniwX7Zmicj69+r1KDHzUw6KZqLNRS9aANuRPowUQwV1wDHziQm/izuFY59Q5VUFM884k/0vTcQrjRYrCpyfuObeI4KZW48bBVH0NRmt1hDGArSkuuMXORDevG9FGAYqaz2LXgHK2C+WE2MABAQOLEIINIk4XISfMN6Tg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=infor.com; dmarc=pass action=none header.from=infor.com;
dkim=pass header.d=infor.com; arc=none
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
CC: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
Subject: RE: Cygwin commands are intermittently hanging on Windows
Thread-Topic: Cygwin commands are intermittently hanging on Windows
Thread-Index: Adjy8W8Yj3CWUckSTIGCBbG+TkPXzQAFwKUAABsu9NA=
Date: Tue, 8 Nov 2022 13:25:05 +0000
Message-ID: <CH2PR02MB6024059985EA304DB4C442D5E53F9@CH2PR02MB6024.namprd02.prod.outlook.com>
References: <CH2PR02MB60248F2E94F6AE770B509A59E53C9 AT CH2PR02MB6024 DOT namprd02 DOT prod DOT outlook DOT com>
<20221108092420 DOT 7e52f3be24171e27b0215a52 AT nifty DOT ne DOT jp>
In-Reply-To: <20221108092420.7e52f3be24171e27b0215a52@nifty.ne.jp>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: CH2PR02MB6024:EE_|BN0PR02MB8128:EE_
x-ms-office365-filtering-correlation-id: dd40e947-783d-4715-b3e0-08dac18ca64a
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 70JbRHnCrE1f27YXYGayyT6OXjMhXuoFkdNQ7qfN/25LD+Ce1V2DUPb46g8okUuzyR5Ch+wpxdwhQnF7G5F4cG6m1wJcIvb4Ur1z40s0w0OSsde9tbWvBcJT8KAbWQOguXGDZ2G5rhGMj7v9YFPHlaphYQ1YVLBancgNpxLVE8b0MRLY7EH/AKyv1Zs9x8RFrRaAUNBzAoYPIMPBjjbgA0fsrVaUr52aFbSXBy/nz7CGBh+K6BpIvZ2ljSdAXMMlWV71AcYS32PD2+oTYATLnphaEE+SCh3VOolc+eVaH5q/oxPKKs1Qjk0P5a32YMdOhTX3NNqsUZ424Co+3fPTEdPpQCJ9BKCzJEmtXqdZw7AlgteC0/mQgm/qPWtBO6L/SY5J44ET1EYeeW6sRP5A8vIGdebbxR0EFUfOlONXe8MB5vErvQP881oHmpySEC1z9dxsoBd5RpvXGUTcprvsQIDcqXcH/E4zHzDO3n6sBXHsy9in07sXrx3Be0tzosorO72DveYqgA1WIjD/QEFl1qMfoIzu6euzYlWoHoEIt7GQniJDDJqMoheVF4P98PgfogWupCf+KaYLf/cQf0W33OgMzEZsvTOzogn2bhazfc4lnbYojEAnuM38xSpY9t+ea+h3u/3S0C/o5ZNCbsW4HdovxCAQgepZdvQR6XjrX6EMpnSYZ2YvOFuDNKWEglRW/auFt3QEos0R35+DX88lluurIDzA3c+R/zowjZPzKtVOfoUZtbtoE2L7YD8xYalbMk49X3LpdnvEXPruaEZpC+hfgBkvVaz5e2WA6RfpK10=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:CH2PR02MB6024.namprd02.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230022)(4636009)(346002)(396003)(366004)(136003)(39860400002)(376002)(451199015)(33656002)(82960400001)(86362001)(38070700005)(38100700002)(55016003)(2906002)(6506007)(7696005)(186003)(122000001)(9686003)(83380400001)(66899015)(66556008)(66476007)(76116006)(64756008)(66446008)(66946007)(6916009)(316002)(478600001)(52536014)(8676002)(8936002)(4326008)(71200400001)(5660300002)(41300700001)(460985005);
DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?OQOqmK+tvn3TqMvJHDnGmG5ldar1Cyxhc/QBMe9EbnwCpmhGIXWnKj97CdR7?=
=?us-ascii?Q?i59WcBvlvz4/HTWdEgU7wM/uXh9KF2W++dtEBKEs4sofN9r4qzlJFqSifts3?=
=?us-ascii?Q?l1oErNtw93CmFMRR8ai3pv6wk4iYvkrzC1+ebAM1Q0WYHrxvRxboD0I1xOku?=
=?us-ascii?Q?FDilNdX8reCJoXBxhVx2tb/yl5L/Bb+TB8o/VaBF1pPM/B8pq+IAsXUIDTd6?=
=?us-ascii?Q?fmjSkdG3cmn5fzyaBmU0Qobx/6OPya85J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Njbdt6VAjK/95r47qdBEz0F66msxScmbDRlaZcqfiF0caVzJ1RNk?=
=?us-ascii?Q?GprsYKR1gPepDCnaikZwJXuVGmAQNSt3iKCKWheex8PMr36FMA9kdOTBDKI/?=
=?us-ascii?Q?kXZpuqRdrizZpA0fSMUaTtU9haiuT5HfsRLQ5JDCDVl1oSghc47MZifFY07O?=
=?us-ascii?Q?EPSs1CoccBSQ4aHeV2vZx7vE/sDhsQls6sw9NRWRhAt2daUDEpYhg44dN2k3?=
=?us-ascii?Q?QskljInm2UuftRHH+3trJ5VF+og/a8HFM9DqHkfV/4E0QGZaweKdeFSlBSnK?=
=?us-ascii?Q?UEJk63VxJZdk5gFhcHGLfFBRt+YDmB+BS2I2wp5zSciyuvVZtJenWPWmv0G+?=
=?us-ascii?Q?XY1zLWK5IZTH4wWU4Y0fPKm/oHiSgObfzVr29AHZO5l5UpFmps34VWaDKn63?=
=?us-ascii?Q?bcoR5q3hM4RB6rgIJ2c58C1ccRnWXcDxiINNwZ60Jiu5CwJlaFQV5NyYQCqm?=
=?us-ascii?Q?VaqKAt34SN+iq64ZUr3eWWQqSfT2X89ARwTy1pBxp0br?=
MIME-Version: 1.0
X-OriginatorOrg: infor.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: CH2PR02MB6024.namprd02.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: dd40e947-783d-4715-b3e0-08dac18ca64a
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2022 13:25:05.5686 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 457d5685-0467-4d05-b23b-8f817adda47c
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: f995Tv26EDOafiMxGw6s4qxnNJ4OvNtye8UnyD5/llPAI9TV7TEtVQmym6W/VgO27nPWfgdk1f4UdP50s8prcQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN0PR02MB8128
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_NONE,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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-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: Derek Pagel via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Derek Pagel <Derek DOT Pagel AT infor DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

The script was written using Strawberry Perl with Cygwin in the %PATH% variable. Then the script makes system calls using that Cygwin.


On Mon, 7 Nov 2022 22:06:46 +0000
Derek Pagel wrote:
> I've printed the script below for reference:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> use strict;
> use Cwd;
> 
> my $TESTDIR = getcwd() . "\\test<file://test>"; my $MKDIRCMD = "mkdir 
> test"; my $TOUCHCMD = 'touch test.txt'; my $CPCMD = 'cp test.txt 
> test2.txt'; my $MVCMD = "mv test.txt " . $TESTDIR . 
> "\\test.txt<file://test.txt>"; my $WHICHCMD = 'which explorer.exe'; my 
> $RMCMD = "rm " . $TESTDIR . "\\test.txt 
> test2.txt<file://test.txt%20test2.txt>";
> my $count = 0;
> my $fh;
> my $LOG = open $fh, '>', 'cygwinTest.log';
> 
> if ( ! -e $TESTDIR ) {
>                 runCMD($MKDIRCMD, 0);
> }
> 
> while ($count < 10000) {
>                 print "Loop $count:\n";
>                 runCMD($TOUCHCMD, $count);
>                 runCMD($CPCMD, $count);
>                 runCMD($MVCMD, $count);
>                 runCMD($WHICHCMD, $count);
>                 runCMD($RMCMD, $count);
>                 $count++;
> }
> 
> sub runCMD {
>                 my $CMD = $_[0];
>                 my $COUNT = $_[1];
>                 my $retCode;
>                 my $startTime;
>                 my $endTime;
>                 my $totalTime;
> 
>                 $startTime = time();
>                 $CMD = "C:\\Windows\\system32\\cmd.exe /c $CMD";
>                 $retCode = system($CMD);
>                 $endTime = time();
>                 $totalTime = $endTime - $startTime;
>                 if ($totalTime > 1 ) {
>                                 print $fh "Loop #$COUNT:\n";
>                                 if ($retCode == 0) {
>                                                 print $fh "It took $totalTime seconds to run [$CMD]\n";
>                                 } else {
>                                                 print $fh "It took $totalTime seconds to unsuccesfully run [$CMD]\n";
>                                 }
>                 }
> }
> 
> close $fh;
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Which script language do you use for this script?
It looks like perl script, however, cygwin perl cannot run this script.

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