How to get child process from parent process

前端 未结 9 763
清歌不尽
清歌不尽 2020-11-30 23:05

Is it possible to get the child process id from parent process id in shell script?

I have a file to execute using shell script, which leads to a new process

9条回答
  •  心在旅途
    2020-11-30 23:11

    To get the child process and thread, pstree -p PID. It also show the hierarchical tree

提交回复
热议问题