DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53S8ZZ7U797203
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 53S8ZZ7U797203
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=ROzGuk9v
X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA4193858408
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1745829333;
	bh=A43BrHso0Ka5yD43k3576d7qbyjuh3AfwiIB8cT+z0s=;
	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=ROzGuk9vauj/y/2ZTp0zuIlghxxDED4MY0gACyxMHAOXosDS+QVI7Q/uSsV/CAIID
	 IdWn48swwCza9fwqPmMim4WnE6uYTpEhh8Lv1/fTaf8tbjyqCeNBfSXi1gRbCj9VCu
	 B3jVr+dpXaZvxlt9uHqbAdvFGJI7UXz9GUOXvfFE=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E154F3858D1E
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E154F3858D1E
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745829305; cv=none;
 b=fPpqQixTQFqcN6rTwgMnUSdWaV70IQgyp308lGVn4nedD6KY7YfMzINxlmbwHl/tjLD2CLlaq4noyQxFUwO4ylF9eC95jvN+IwJTrBuRZwFliUyNe07x9087BPnm+mV6UX7JhcJxr5t+cAgp4Pw/3Z5UWI4aUGB9YZMIB1ezSD0=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1745829305; c=relaxed/simple;
 bh=V/MO4kCrFBCEN3amLoe8JyVi/06uMP6J5trdybg5wIU=;
 h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version;
 b=PAS6JyDJAECRPftLYQ1QKoAopvhq1W0Z1IUlDu0ONQdD39WcVFbEGEpmjUDzCUcT2EYiBpVwjiDZVaq2fbwxRvWzuGFj+lb5p+CHonIev4WTs6LxhnDhF7iRfxRqBmoVfqzgNXa+P+aFtdvSZT6PkIFEn8CENPcu6L2xNgwThgY=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E154F3858D1E
X-Yandex-Fwd: 1
Date: Mon, 28 Apr 2025 11:22:22 +0300
X-Mailer: The Bat! (v9.3.4) Professional
Message-ID: <785522855.20250428112222@yandex.ru>
To: "Agnihotri, Alok Kumar" <alokkumar.agnihotri@philips.com>,
        cygwin@cygwin.com
Subject: Re: Request for Assistance: Non-Functioning Commands in Cygwin
 Environment
In-Reply-To: <AM7P122MB01959A2A35168982969098ACEC812@AM7P122MB0195.EURP122.PROD.OUTLOOK.COM>
References: <AM7P122MB01959A2A35168982969098ACEC812@AM7P122MB0195.EURP122.PROD.OUTLOOK.COM>
MIME-Version: 1.0
X-BeenThere: cygwin@cygwin.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@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Andrey Repin via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Andrey Repin <anrdaemon@yandex.ru>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>

Greetings, Agnihotri, Alok Kumar!

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


-- 
With best regards,
Andrey Repin
Monday, April 28, 2025 11:10:08

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
