unix - How to get the trace of process? -


suppose there process in inactive state many days , want know until time process in active state. other log records can information? unix platform.

use strace debugging utility. can attach running process, save output log file , analyse later.

[root@localhost ~]# [root@localhost ~]# strace -o log -p 7166 process 7166 attached - interrupt quit 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -