public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin@cygwin.com
Cc: Oleksandr Gavenko <gavenkoa@gmail.com>
Subject: Re: procmon doesn't capture cygwin's process arguments
Date: Sun, 1 Nov 2020 14:48:30 -0700	[thread overview]
Message-ID: <29885222-94ed-e8e0-c512-33e76b1a9e28@SystematicSw.ab.ca> (raw)
In-Reply-To: <4fa75257-7b36-251d-16bd-bb7cb0147ad2@SystematicSw.ab.ca>

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

  reply	other threads:[~2020-11-01 21:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-01 17:59 Oleksandr Gavenko
2020-11-01 21:41 ` Brian Inglis
2020-11-01 21:48   ` Brian Inglis [this message]
2020-11-02  6:36 ` Andrey Repin
2020-11-02  9:04   ` Oleksandr Gavenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=29885222-94ed-e8e0-c512-33e76b1a9e28@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin@cygwin.com \
    --cc=gavenkoa@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).