From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7528 invoked by alias); 19 Oct 2014 17:42:09 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 7513 invoked by uid 89); 19 Oct 2014 17:42:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.2 required=5.0 tests=AWL,BAYES_50,BODY_8BITS,FREEMAIL_FROM,FREEMAIL_REPLY,GARBLED_BODY,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-qa0-f41.google.com Received: from mail-qa0-f41.google.com (HELO mail-qa0-f41.google.com) (209.85.216.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 19 Oct 2014 17:42:06 +0000 Received: by mail-qa0-f41.google.com with SMTP id n8so2485419qaq.28 for ; Sun, 19 Oct 2014 10:42:04 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.224.71.211 with SMTP id i19mr16130055qaj.65.1413740524120; Sun, 19 Oct 2014 10:42:04 -0700 (PDT) Received: by 10.96.212.130 with HTTP; Sun, 19 Oct 2014 10:42:04 -0700 (PDT) In-Reply-To: <331276296.20140923004634@mtu-net.ru> References: <331276296.20140923004634@mtu-net.ru> Date: Sun, 19 Oct 2014 17:42:00 -0000 Message-ID: Subject: Re: "CYGWIN=wincmdln" does not give me nuts From: =?UTF-8?B?0J/RkdGC0YAg0JEu?= To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2014-10/txt/msg00251.txt.bz2 However, after assuming that developers are smarter than I am, i found it. In XP I would have zero problems, but I was using Seven! I created a per-user variable "CYGWIN" thinking that it will be visible to all programs. But operating system thinks otherwise - per-user variables only affect programs launched under his account. Programs with elevated priveleges happen to not count because they are launched with "SYSTEM" account. You should have asked me about whether "CYGWIN" is visible in the output of "set" command - it wasn't. Making CYGWIN a system variable worked as it should. 2014-09-23 0:46 GMT+04:00, Andrey Repin : > Greetings, =D0=9F=D1=91=D1=82=D1=80 =D0=91.! > >> I was frustrated by not being able to view CMD of Cygwin processes in >> Windows tools. After a bit of research I found the talk about the >> wincmdln option and saw it mentioned in changelog. > >> However, setting it did not take any effect even after reboot, > >> Windows 7 SP1 Prof x64, Cygwin 1.7.32.0274 x86_64. > >> Am I doing it wrong? > > I hope you aren't using 32-bit tools to view environemnt of 64-bit > applications, do you? > > CYGWIN=3Dnodosfilewarning wincmdln winsymlinks:nativestrict > >> From Far x86: > > Module: bash.exe > PID: 5168 > Parent PID: 7468 > Priority: 8 > Threads: 6 > Owner: daemon2\anrdaemon > (S-1-5-21-2916456319-725650362-4229827469-1000) > Session: 1 > > Started at: 00:42:16 > Uptime: 00:00:51 > > > GDI Objects: 4 > USER Objects: 1 > > Processor Time: 00:00:00.000 0% > Privileged Time: 00:00:00.000 0% > User Time: 00:00:00.000 0% > Handle Count: 131 > Page File Bytes: 6852608 > Page File Bytes Peak: 6856704 > Working Set: 5939200 > Working Set Peak: 5939200 > Pool Nonpaged Bytes: 8824 > Pool Paged Bytes: 99792 > Private Bytes: 6852608 > Page Faults: 1464 0/sec > Virtual Bytes: 599552000 > Virtual Bytes Peak: 599552000 > IO Data Bytes: 6398 0/sec > IO Read Bytes: 6313 0/sec > IO Write Bytes: 85 0/sec > IO Other Bytes: 4328 0/sec > IO Data Operations: 9 0/sec > IO Read Operations: 6 0/sec > IO Write Operations: 3 0/sec > IO Other Operations: 237 0/sec > > Modules: > Base Size Path, version, description > 75761282 2C5B30 > > >> From Far x86_64: > > Module: bash.exe > Full path: C:\Programs\Cygwin_64\bin\bash.exe > PID: 5168 > Parent PID: 7468 > Priority: 8 > Threads: 6 > Owner: daemon2\anrdaemon > (S-1-5-21-2916456319-725650362-4229827469-1000) > Session: 1 > > Started at: 00:42:16 > Uptime: 00:01:31 > > Command Line: > C:\Programs\Cygwin_64\bin\bash.exe > > Current Directory: D:\PlugRing\Utils\ > > Environment: > > PATH=3DC:\Programs\Cygwin_64\bin;C:\Program Files (x86)\NVIDIA > Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System= 32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program > Files\WinRAR;C:\Program > Files\7-Zip;C:\DrWeb;C:\Programs\Subversion\bin;C:\Users\anrdaemon\bin;C:= \usr\util;C:\usr\ARH;C:\USR\BP7\BIN;C:\usr\FPC-2.4.2\bin\i386-Win32;C:\Prog= rams\CVSNT\ > SYSTEMDRIVE=3DC: > SYSTEMROOT=3DC:\Windows > WINDIR=3DC:\Windows > > GDI Objects: 4 > USER Objects: 1 > > Processor Time: 00:00:00.000 0% > Privileged Time: 00:00:00.000 0% > User Time: 00:00:00.000 0% > Handle Count: 131 > Page File Bytes: 6852608 > Page File Bytes Peak: 6856704 > Working Set: 5939200 > Working Set Peak: 5939200 > Pool Nonpaged Bytes: 8824 > Pool Paged Bytes: 99792 > Private Bytes: 6852608 > Page Faults: 1464 0/sec > Virtual Bytes: 599552000 > Virtual Bytes Peak: 599552000 > IO Data Bytes: 6398 0/sec > IO Read Bytes: 6313 0/sec > IO Write Bytes: 85 0/sec > IO Other Bytes: 4328 0/sec > IO Data Operations: 9 0/sec > IO Read Operations: 6 0/sec > IO Write Operations: 3 0/sec > IO Other Operations: 237 0/sec > > Modules: > Base Size Path, version, description > 0000000100400000 A8000 C:\Programs\Cygwin_64\bin\bash.exe > ...cut... > > Handles: > Handle Access Type Name > 4 00000009 > 8 00000003 > ...cut... > > > -- > WBR, > Andrey Repin (anrdaemon@yandex.ru) 23.09.2014, <0:41> > > Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple