tips, combining strace with pidof
Masatake YAMATO
yamato at redhat.com
Fri Mar 2 12:53:40 UTC 2018
> On Fri, Mar 02, 2018 at 08:57:35PM +0900, Masatake YAMATO wrote:
>> 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.
>
> Try
> # strace -p "$(pidof httpd)"
> instead (note extra quotes).
>
> This syntax is supported since strace-4.7.
Wow! I should take more time to read the man page.
Masatake YAMATO
More information about the Strace-devel
mailing list