X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4F596386EC4B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=SystematicSw.ab.ca Authentication-Results: sourceware.org; spf=none smtp.mailfrom=brian DOT inglis AT systematicsw DOT ab DOT ca X-Authority-Analysis: v=2.4 cv=P9aEOgMu c=1 sm=1 tr=0 ts=5f9f2d2f a=kiZT5GMN3KAWqtYcXc+/4Q==:117 a=kiZT5GMN3KAWqtYcXc+/4Q==:17 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=yMhMjlubAAAA:8 a=94nOnFI1EgyDtX4ev68A:9 a=QEXdDO2ut3YA:10 a=pwUoXiQdmvIA:10 a=VTJOHQwvoJQA:10 a=sRI3_1zDfAgwuvI8zelB:22 Subject: Re: procmon doesn't capture cygwin's process arguments From: Brian Inglis To: cygwin AT cygwin DOT com References: <4fa75257-7b36-251d-16bd-bb7cb0147ad2 AT SystematicSw DOT ab DOT ca> Organization: Systematic Software Message-ID: <29885222-94ed-e8e0-c512-33e76b1a9e28@SystematicSw.ab.ca> Date: Sun, 1 Nov 2020 14:48:30 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <4fa75257-7b36-251d-16bd-bb7cb0147ad2@SystematicSw.ab.ca> Content-Language: en-CA X-CMAE-Envelope: MS4xfJt/CfiezWJtkmFGnD4rhx6Ft7iLXGOA+pDXvw6qVPn/jk4Roth0eurMGWCde4BeKM4OlrOns3HXHUbnYCEUxmuP3Cuuiwtn62oV+whVyxtKGq7xru+8 3n8g8M1/nosgGPdTUzc9KqlBaUEczGo/zDR55jB+lljUeXzKVgjyz3nfb+7xtUaBjjLXyVgqma7z/NGtepYBFAoVAKmP/fd0UW+uHvItza9+JEAGFBu3RukN X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Cc: Oleksandr Gavenko Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" On 2020-11-01 14:41, Brian Inglis wrote: > On 2020-11-01 10:59, Oleksandr Gavenko via Cygwin wrote: >> I tried to find out what processes emacs-w32 is starting for my custom >> TRAMP method. >> >> "strace -f emacs-w32" fails. >> >> I expected to succeed with procmon & its filter " Command/ Process Start". >> >> Unfortunately procmon [1] doesn't report "argv" if a Cygwin executable is >> started from a Cygwin executable. If I run a Cygwin app from the Windows >> environment it captures positional arguments. >> >> Is there some option to make positional arguments visible to procmon? >> >> I could find it in: >> >> * https://cygwin.com/cygwin-ug-net/using-cygwinenv.html >> * https://cygwin.com/cygwin-ug-net/setup-env.html >> >> Please keep my email in CC... >> >> [1] https://docs.microsoft.com/en-us/sysinternals/downloads/procmon > > Package procps-ng /usr/bin/procps, and /proc/*/cmdline (null terminated args): > > $ procps -aeflw > > Suggest: > > $ alias cyg-proc=/usr/bin/proc > $ alias proc=/usr/bin/procps Sorry - brain fart: $ alias cyg-ps=/usr/bin/ps $ [ -x /usr/bin/procps ] && alias ps=/usr/bin/procps > $ head /proc/*/cmdline | cat -A; echo > > see attached logs for output. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary units and prefixes, physical quantities in SI.] -- 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