gpt4 book ai didi

linux - 如何附加到正在运行的 shell 脚本?

转载 作者:太空宇宙 更新时间:2023-11-04 12:44:58 26 4
gpt4 key购买 nike

是否可能,即使用 gdb?需要什么?

12606 ?        Ss     0:00 /bin/bash -c /xxx/bin/dispatch.start
12626 ? S 0:00 \_ /bin/bash /xxx/bin/waitpower.sh
13831 ? S 0:00 \_ /bin/sh ./wn-mps1086-generex start

我想附加到 waitpower.sh 并查看发生了什么。

最佳答案

retty 12626

http://pasky.or.cz/dev/retty/ “retty 是一个微型工具,可让您附加在其他终端上运行的进程。”

关于linux - 如何附加到正在运行的 shell 脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39011503/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com