How to get the process id of a bash subprocess on command line

后端 未结 6 1316
庸人自扰
庸人自扰 2020-12-15 03:47

I know in bash we can create subshells using round parenthesis ( and ). As per bash man page:

(list) list  is  executed  in  a  subs         


        
6条回答
  •  青春惊慌失措
    2020-12-15 04:06

    Use homebrew to install pgrep on the Mac: brew install pgrep

    Check out http://mxcl.github.com/homebrew/ to install Homebrew.

提交回复
热议问题