How to get the process id of a bash subprocess on command line
Thanks to all of you for spending your valuable time in finding answer to my question here. However I am now answering my own question since I’ve found a hack way to get this pid on bash ver < 4 (will work on all the versions though). Here is the command: echo $$; ( F=’/tmp/myps’; … Read more