tips, combining strace with pidof

Masatake YAMATO yamato at redhat.com
Fri Mar 2 11:57:35 UTC 2018


Hi,

I guess you, enjyoing hacking strace, may use strace with pidof like:

  # strace -p $(pidof httpd)

As you may know, this doesn't work if there is more that one http process.

I have been frustrated with this for years.
Though who are the same, let's wait the new release of procps.
I added an option to specify the separator. You can run strace like:

  # strace -p $(pidof -S ' -p ' httpd)

See https://gitlab.com/procps-ng/procps/commit/73492b182dc60c1605d1b0d62de651fad97807af

Masatake YAMATO


More information about the Strace-devel mailing list