'How to get a list of files open by some process
On mac i can do
sudo filebyproc.d 2>/dev/null | grep " cat "
running
cat balbalbla
i've got
sudo filebyproc.d 2>/dev/null | grep " cat "
Password:
8 178 open:entry cat /dev/dtracehelper
10 964 open_nocancel:entry cat /usr/share/locale/UTF-8/LC_CTYPE
2 178 open:entry cat balbalbla
which is the list of all files open by cat process.
How to do the same (or similar) in QNX?
Solution 1:[1]
Use pidin -p <process> fds
. <process>
may be specified as either a pid or the name of the binary (eg. 'cat').
Ref: http://www.qnx.com/developers/docs/7.1/#com.qnx.doc.neutrino.utilities/topic/p/pidin.html
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |