Tag Info

New answers tagged

2

Consider using SystemTap. It is dynamic instrumenting engine that dynamically patches kernel so you can track any in-kernel event such as opening a socket. It is actively developed by RedHat so it is supported in CentOS. Installing To install SystemTap on CentOS 6: Enable debuginfo repository: sed -i 's/^enabled=0/enabled=1/' ...


1

Consider using SystemTap. It is a DTrace clone but for Linux - it compiles kernel module that dynamically patches kernel and has full access to its data (so lsof may not be needed in that case). However, the more information you ask, more tricky and kernel-version-specific script will become. For example, simple stat-like utility for sockets will look ...


0

One way could be to examine the files opened by that process. Of the types shown in the FD column of lsof: FD is the File Descriptor number of the file or: cwd current working directory; ... txt program text (code and data); So, try: lsof -a -d txt -p 212548 For scripts, this does show the path of ...



Top 50 recent answers are included