DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53TA7pXE1378014 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 53TA7pXE1378014 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=QNmoZ/EV X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 38A08385843B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1745921270; bh=2/3qjtPQp8XmANRlm8yc0w/24VpTTJdwkOxcGgxwuGw=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=QNmoZ/EVZgNONDvNRtMcdGbwq+WZXeF3qpV2sBSXyp4Ba7z13uXuN1iAzn1SGFoSK KUsgFSN0e+Vqf1cUAawnpvEWOuuhkx3bE4dm40SqiF7IOte9KCM8zg2AnZQc51eRP+ FevtmJwUargQqLJLxaeGfo8uoq3PryTtSQr24Lxo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D60033858C48 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org D60033858C48 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745921105; cv=none; b=v18cTljPlm4oPq2y4HbQaUshNxoi96OrNjY49K4qG+2i2g8JOortluDDALHqqZFqtOOtgayywdujTxvuzh4aFQcS5aD61FmM5qQL7w01/qqpAc7WjQ1BRQdxoxUz5F4viu8vCmJDJA8zMEoHYdTKTX10acMW4eQfeWQpcItqGLk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745921105; c=relaxed/simple; bh=SEFE8IlAq/zceI25g3z5p7qXp1P3zmrCmZwChphzr44=; h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version; b=eIPNP2TKwk/JnU1pu0GY0WX3GwoUjQUbllVernxE834I5JyGQvKl10Lh0Ug6+st7cQSDqizwDqdheffT1pCerh1W6ZmjCVeXXUm/W2xpCaHgcPzJweQGHUsHDLcu7yxyTbwDp8c5BTZRa3VGNAOioOnE1mVU1/gRkkGEDG0AHJ4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D60033858C48 X-Yandex-Fwd: 1 Date: Tue, 29 Apr 2025 13:02:18 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <1713820888.20250429130218@yandex.ru> To: "Agnihotri, Alok Kumar" <alokkumar DOT agnihotri AT philips DOT com>, cygwin AT cygwin DOT com Subject: Re: Request for Assistance: Non-Functioning Commands in Cygwin Environment In-Reply-To: <AM7P122MB0195541B2B3029A1EF8EA34EEC802@AM7P122MB0195.EURP122.PROD.OUTLOOK.COM> References: <AM7P122MB01959A2A35168982969098ACEC812 AT AM7P122MB0195 DOT EURP122 DOT PROD DOT OUTLOOK DOT COM> <785522855 DOT 20250428112222 AT yandex DOT ru> <AM7P122MB0195541B2B3029A1EF8EA34EEC802 AT AM7P122MB0195 DOT EURP122 DOT PROD DOT OUTLOOK DOT COM> MIME-Version: 1.0 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list 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: Andrey Repin via Cygwin <cygwin AT cygwin DOT com> Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin <anrdaemon AT yandex DOT ru> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com> Greetings, Agnihotri, Alok Kumar! This list uses a bottom-posting for easier navigation of reply history. >>> Dear Cygwin Technical Support Team, >>> I hope this email finds you well. >>> My name is Alok Agnihotri, and I am part of the Philips organization. We >>> are utilizing Cygwin in our environment to execute SSH commands remotely on >>> Windows-based machines, supporting various activities critical to our operations. >>> We are currently facing an issue where certain standard commands are not >>> recognized or are failing to execute within the Cygwin environment. >>> The list of affected commands includes: > >>> * wmic >>> * perl >>> * egrep >>> * zip >>> * awk >>> * env >>> * head >>> * portqry >>> * reg query > >> egrep is obsolete (use `grep -E`), but it should work (see below). >> To the other commands, awk, env, head - should work (reinstall and rebase >> Cygwin if that's not the case). Same for zip and perl, if those are Cygwin >> executables (make sure you actually have them installed). >> In general, if you have silent crashes of Cygwin programs, it's often the >> memory allocation issue, which could be caused by Cygwin installation when any >> of the Cygwin processes running during package install. Setup could only >> detect processes running when you start it, but if any of them are started and >> still running when setup is actually installing packages, THAT could be a >> problem. Another source of this issue is a badly behaving "antivirus" >> injecting its libs at the wrong time in the wrong place. The third cause could >> be forced ASLR. Cygwin's fork implementation is sensitive to address space >> layout changes. Don't do that for Cygwin. > >> To the portqry, wmic and reg, IDK what is your issue. May be update Cygwin and >> try again? There were changes in socket code regarding pipelining. > Thanks for your quick response . > Can you please suggest which Cygwin version should be use so that we dont > face issue with these commands . There's no such thing as "Cygwin version" aside from the Cygwin1 DLL itself. Cygwin as an application is a package management system that helps you install the packages you want in an easy way. As I outlined above, the problem could come from more than one source. First thing should be a clean upgrade in either way, making sure no suddenly spawned Cygwin processes could interfere with it. Then (if that didn't help) `rebase-trigger full` with subsequent run of setup.exe (see docs for details). After that, it's likely an external issue (AV/OS interfering), and there's steps and hints to diagnose and mitigate it in the list archives. -- With best regards, Andrey Repin Tuesday, April 29, 2025 12:52:45 Sorry for my terrible english... -- 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