如何通过某些过程打开文件列表
在Mac上,我可以
sudo filebyproc.d 2>/dev/null | grep " cat "
,
cat balbalbla
运行
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
这是CAT进程打开的所有文件的列表。
如何在QNX中执行相同的(或相似)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
pidin -p< process> FDS
。< process>
可以指定为PID或二进制的名称(例如'Cat')。参考:
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