tips, combining strace with pidof

Dmitry V. Levin ldv at altlinux.org
Fri Mar 2 12:31:02 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.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20180302/2377da44/attachment.bin>


More information about the Strace-devel mailing list