Actually this tool is not only for Sysadmin's - it is very helpful for developers. I know there are other tools like gdb, etc. But if you have to use (calling from your program) other programs, or if the library that you use does something strange, then strace is a shortcut.
From this article I learned that strace can be called to analyse an already running process (-p).
Comments
Actually this tool is not only for Sysadmin's - it is very helpful for developers. I know there are other tools like gdb, etc. But if you have to use (calling from your program) other programs, or if the library that you use does something strange, then strace is a shortcut.
From this article I learned that strace can be called to analyse an already running process (-p).
It's possible to pass up to 32 -p arguments. For example, tracing multiple apache worker processes: