From fde347163a693c9e071299c060ce6785c9dd1c6d Mon Sep 17 00:00:00 2001 From: benoit Date: Thu, 16 Nov 2017 10:43:26 +0000 Subject: [PATCH] no need for last -p --- SysadminTips.page | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SysadminTips.page b/SysadminTips.page index fc56e0c..7331997 100644 --- a/SysadminTips.page +++ b/SysadminTips.page @@ -25,7 +25,7 @@ ps axo user:20,pid,pcpu,pmem,vsz,rss,tty,stat,start,time,comm WTF is happening in apache (or other)? Let's strace all apache processes. ``` -# strace -p $(ps auwwwx | grep apache | tr -s '\t' ' ' | cut -d' ' -f2 | tr '\n' ' ' | sed 's/ / -p /g') -p 9999 +# strace -p $(ps auwwwx | grep apache | tr -s '\t' ' ' | cut -d' ' -f2 | tr '\n' ' ' | sed 's/ / -p /g') 9999 ``` WTF is happening? Let's tail all logs.