赞
踩
使用reptyr
Ubuntu下,直接apt-get安装即可
使用方法就是
reptyr <PID>
比如你需要获取的程序PID为7191,那么需要执行的命令就是
reptyr 7191
如果出现这种情况
[-] Process 4118 (python) shares 7191's process group. Unable to attach.
(This most commonly means that 7191 has suprocesses).
Unable to attach to pid 7191: Invalid argument
如下图
直接在命令后面添加参数 -T 然后使用管理员权限运行即可
sudo reptyr 7191 -T
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。