updated 'strace' one-liners

- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
trimstray 2019-03-27 10:05:13 +01:00
parent a873e2a598
commit 0ce440acd4

View File

@ -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