delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/07/20/10:30:44

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 46KEUhX61680467
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=xgQNMvb2
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F0C64385DDE5
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1721485842;
bh=3FJnCvsvgCz/n7lm+PvJnSZFhGjVxDTSHMv1tS4Qbpk=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=xgQNMvb2E+3G0sz3i/nrwhokMJm9XJAUGMU5JEKKRXLTZW/+wNT8+MmOeO1yQ00LN
YWH+WgXYjIeZVhS8DGDdjcSzcabBRssFDn5bWvrJnBmbcifsmdT4bD4O4eYAYlcvHX
WSoOMKAXjB8USu7MBC9q/XztsVOnZCG0JHMAHUQQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A5CF53858C41
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A5CF53858C41
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721485788; cv=none;
b=CWk2X/xQaBDEzyCejXZSX2+pcav6aM/0ZYNTe5g3+veUXF54k2vBpj/s2UhzY4yfPIST/n/eyViZbP0bq0rTvTLjKOFnQ0/Rfe+Zv/JbEDDyBh0o+GD/uRT2akAa/XMVm13O3mIG7gzQyJRbcQQXacjiw9Cjf4gxeGam730q7Fk=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1721485788; c=relaxed/simple;
bh=qfh++Ct6lYPO4gfR8KMJfDGPErEEz4JI+r5icyotuGc=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=K424Mv/P4/GkqZh+4Zol0C95ntdZWo3GFQjOckKUe98aRVbM0hgPne0BFV9zQg6PulJXNrBYmh95tyWTVW6biqZxNq2dTUKhhHLWD3SUFuuS1Np/VUVp04n41Kjwa1LOsZBcvgW9ihgJFkXJyYtAb9KO6Tye+JEJwDG5tSpLxnI=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-UI-Sender-Class: f2cb72be-343f-493d-8ec3-b1efb8d6185a
X-Gm-Message-State: AOJu0YzxXqhJw6JuVWhaFdp14/tWxHntPH3wVXD/LbDp2r5gMFWRzrvF
UtRdoTyGt+ljVOSohn7mSHS+UZ1Em6+343rx/eHvjtvcMCms3JkMq0h10pLGrGJv07LHZ7S0oLs
6ArTZpBZnmylEY1YTxYPZi3gTT2Y=
X-Google-Smtp-Source: AGHT+IG78UpIs2Q+ePyDKY246W0dhymjTyjhU88TsPz9XVyaQgo9YpHqZJ78iVr29KtaU1mZdibhJkNbA/Qt4nNH/to=
X-Received: by 2002:a05:6512:3daa:b0:52e:f463:9788 with SMTP id
2adb3069b0e04-52ef4639939mr1753279e87.6.1721485784107; Sat, 20 Jul 2024
07:29:44 -0700 (PDT)
MIME-Version: 1.0
References: <CAN0SSYzW_im0Fgucbsqk6u=Cu1suSmvhJbskH8doV98mMOTtUg AT mail DOT gmail DOT com>
In-Reply-To: <CAN0SSYzW_im0Fgucbsqk6u=Cu1suSmvhJbskH8doV98mMOTtUg@mail.gmail.com>
Date: Sat, 20 Jul 2024 08:29:17 -0600
X-Gmail-Original-Message-ID: <CANV9t=TCFTGisXDC6UJ5zR5Bk=CiFAwFSX=sRe1H+uSwNA7BpA AT mail DOT gmail DOT com>
Message-ID: <CANV9t=TCFTGisXDC6UJ5zR5Bk=CiFAwFSX=sRe1H+uSwNA7BpA@mail.gmail.com>
Subject: Re: Parse output of "net use", but language varies - force language
for "net use"?
To: cygwin AT cygwin DOT com
X-Provags-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avlko3YNohUhYcdmCS
XNA9hMgyvPQ/7TW46WlriQKg==
X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
KAM_INFOUSMEBIZ, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS,
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-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
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: Bill Stewart via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Bill Stewart <bstewart AT iname DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 46KEUhX61680467

On Sat, Jul 20, 2024 at 7:45 AM Mark Liam Brown via Cygwin wrote:

I am trying to parse the output of "net use" in a bash script, but hit
> a roadblock:
> The output of "net use" changes with the language of the system
> (English, Danish, French, ...), so parsing becomes nearly impossible
>
> How can I force the language used by "net use" to English, even if the
> system default language is Danish or French?
>

This sounds like an XY problem[1] to me....

What is the goal you're trying to accomplish? Enumerate existing
connections? Get drive mappings?

Bill

[1] https://xyproblem.info

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