delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/07/20/09:45:54

DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 46KDjsYp1670853
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=sDdhfBd/
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6986D3860765
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1721483152;
bh=/BA5e1Wh7O3CBSocXQQFEwPDeYuBWyG1IcPtX+r3t8Y=;
h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=sDdhfBd/qKZGE1yIHVZHKLx65w9SUXgwNShA/sCK2HtoBwmn4LGEg6xDVOY6PQ3ZY
6dIbof0vGMoBTE3OKstnFOAU2+VGuLYozbVgpb3oP8pHee/BXO6GyImC5aPrVwv7Ga
pATW4+wSBjnA2OFKAA719v2JuiTsjfR844C2ENuQ=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 579A4385840D
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 579A4385840D
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721483097; cv=none;
b=Q+zAAkB+jYbBTdAp4B5KkD7SAqTSOs4vDrMLMYi3W0ktiy7HcJoxXTyolIIUKD8JXeaRy6tzsvxxelUQdFyydv/XTSh4my3wAubppjAOWCCvVz6RJOpXmZHgg17Su9OCe3Zg2iltl5b0TL/Pijds8hrcqmWHNogv0/Qrun8hpvY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1721483097; c=relaxed/simple;
bh=lUq82eMLQRHnzrQMKHNc9Ed4Pe/kIK40agl9vDb9Ggc=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=mQJvICGW4ycNJm9LcCz8o1bxVRwVkgOjrYlFwfFKw+g5KQyYj1X0HZExD0DllLsfRAxm6K7HH3/PV9F4lVYebvIa7QQLcc90t90PXqB6LePDVooFxil//apgeOR24/NZOoCXq0tT5QJozEWHLER+ndS/7t8L2OjHKKB9B4VgtII=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1721483094; x=1722087894;
h=to:subject:message-id:date:from:mime-version:x-gm-message-state
:from:to:cc:subject:date:message-id:reply-to;
bh=63dGe3ywMehxsG6HBKm6eH6cx/T3LsyotzoO7Jprb4M=;
b=i71kHf5yRonfTHvPYMv1i8QRqBHgrIyQxq1fz79e0xXDkb67Uyeg8pJQZb27BQrTJB
6nj3R5ZsPpvx4mgUg/1ggYtXVD61RMMDwG3wANPMtUTZ+8l7Cs8geg/PEM0W2FKSDQ1h
zGpOqIWKodBnsAhlDvr8LqbNB2Q3/xYThsIjj3MSg0jeBTdvyi71ujrbrBBroX67hBCK
ZsSNy9HQION61Ez0OjBrI2tVU8Hi3qUd0mkG2njS3wlAHGEOUIuRVY213HEBom1eAqSL
BUrF5Kmr0HqSLnTKLdD/ugyn/mqk0QBt4Qjdt81FAXf8TYnhJCoWwHXUAocj+vTSzaSS
rudg==
X-Gm-Message-State: AOJu0YyU5kuqUecR+FiSUz5BhgWslGMBQYfvwz7GAgiDRtQryogD+DPR
Q14ltpOTAAOt+VsdumPMKpDZGltWYRTeyCVU3x3+Nt6zcIV4vlzgJf8+71JCH+5KMbM8GjbpMsh
DKV2Kv54cIpsF5m0qUZM9P9uqfF6GFQ==
X-Google-Smtp-Source: AGHT+IFgARCy3kHJTQ9Bfisolj72KpsFh8CFZmrJH1iF1UPmpx0Ir/QApFbztiFfIzCXkkQ/FmhzFBkk7RUyBu2pb2M=
X-Received: by 2002:a17:902:e844:b0:1fb:415d:81ab with SMTP id
d9443c01a7336-1fd74562f5cmr17793445ad.20.1721483093968; Sat, 20 Jul 2024
06:44:53 -0700 (PDT)
MIME-Version: 1.0
Date: Sat, 20 Jul 2024 15:44:17 +0200
Message-ID: <CAN0SSYzW_im0Fgucbsqk6u=Cu1suSmvhJbskH8doV98mMOTtUg@mail.gmail.com>
Subject: Parse output of "net use", but language varies - force language for
"net use"?
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_20, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Level: *
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.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: Mark Liam Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Mark Liam Brown <brownmarkliam AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Greetings!

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?

Mark
-- 
IT Infrastructure Consultant
Windows, Linux

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