From 0ce440acd4a4ad5b8d321685e360d81d4313eaf4 Mon Sep 17 00:00:00 2001 From: trimstray Date: Wed, 27 Mar 2019 10:05:13 +0100 Subject: [PATCH] updated 'strace' one-liners - signed-off-by: trimstray --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 658bfb1..d151480 100644 --- a/README.md +++ b/README.md @@ -1451,7 +1451,7 @@ timeout 30 strace $(< /var/run/zabbix/zabbix_agentd.pid) ###### Track child process and redirect output to a file ```bash -ps auxw | grep 'sbin/[a]pache' | awk '{print " -p " $2}' | xargs strace -o /tmp/strace-apache-proc.out +ps auxw | grep '[a]pache' | awk '{print " -p " $2}' | xargs strace -o /tmp/strace-apache-proc.out ``` ###### Track the open request of a network port